Node on Windows Azure


Published on

Published in: Technology

Node on Windows Azure

  1. 1. Node.js on Windows Azure Shiju Varghese 1
  2. 2. About Me• Technical Architect at Cloud & Mobile COE, Marlabs• Microsoft MVP• Focus on Cloud and Windows Azure• Enthusiast on Agile/Lean• Blogs at @shijucv 2
  3. 3. Agenda• Introduction to Node.js• Demo on Node.js• Node.js on Windows Azure 3
  4. 4. Case Study – LinkedIn iPad App“On the server side, our entire mobile softwarestack is completely built in Node. We use a tonof technologies at LinkedIn, but for the mobileserver piece, it’s entirely Node-based”Kiran Prasad,Director of Engineering, Mobile at LinkedIn 4
  5. 5. Result - LinkedIn iPad App“The improvements the team saw werestaggering. They went from running 15 serverswith 15 instances (virtual servers) on eachphysical machine, to just four instances that canhandle double the traffic. The capacity estimateis based on load testing the team has done”Kiran Prasad,Director of Engineering, Mobile at LinkedInSource : 5
  6. 6. Who are using Node.js• LinkedIn• Walmart• ebay• Yahoo• Mozilla• Rackspace Cloud 6
  7. 7. What is Node.js 7
  8. 8. Building an HTTP Server in Node.js 8
  9. 9. What is Node.js 9
  10. 10. Node.js• Started in 2009 by Ryan Dahl• Sponsored by• Second most popular project on GitHub 10
  11. 11. NPM: Node.js Package Manager• Package manager for node• Npm command-line tool ships with Node.js• Allows you to easily add modules to your application• 11,200 Node modules currently available• Use through the command line: 11
  12. 12. Node.js is good for..• Real-time, Collaborative Apps• JSON based REST APIs• Single Page Apps, Client-oriented Web UIs• Custom network services• Mobile Apps, Next-Gen HTML 5 Apps• Network Apps 12
  13. 13. Node.js is not good for• CPU-bound Apps 13
  14. 14. Node.js on Windows• Native node.exe• IISNode ( – a native IIS 7.x module that allows hosting of node.js applications in IIS• Most Node modules supported as is• Performance on par with Linux implementation 14
  15. 15. Windows Azure 15
  16. 16.  NPM for Windows Azure  Node.js driver for Sql Server  Great Support for MongoDB Windows Azure PowerShell for Node.js Git, TFS, FTP Web Matrix Cloud9 IDE 16
  17. 17. Windows Azure Website• Quick provisioning and deployment via FTP, Git, TFS, WebDeploy• ASP.NET, PHP, or node.js• Shared but seamless upgrade to more instances, dedicated• Manage via portal or cross-platform command-line tooling• Free (up to 10 websites, shared) 17
  18. 18. DEMO• Hello World Program• Node.js Web App using Express and Jade• Deploy Node.js App to Windows Azure Web Site 18
  19. 19. QUESTIONS? 19
  20. 20. Thanks Source Code 20