Node.js & Windows Azure AZR326
JavaScript on the Server! Event driven I/O server-side JavaScript Not thread based, each connection uses only a small heap allocation Efficient and highly scalable
Started 2009 Open Source (MIT license) Sponsored by Joyent Second most popular project on GitHub
Pros Pros and Cons
Native node.exe IISNode – a native IIS 7.x module that allows hosting of node.js applications in IIS Most modules supported as is Performance on par with Linux implementation
Process management Scalability on multi-core servers Auto-update Access to logs over HTTP Side by side with other content types Minimal changes to node.js application code Integrated management experience
<add name="iisnode" path="app.js" verb="*" modules="iisnode" />
demo Hello World & Express
Create, run, and publish all from outside of Visual Studio Use command line and editor or IDE of your choice
Create Hosted Service Launch Node application in local emulator Set configuration settings Deploy to Windows Azure
Create and Manage Web Sites Create and Manage VMs Configure Deployment Settings Deploy to Windows Azure
Node CLI Demo
web sites Build with ASP.NET, Node.js or PHP Deploy in seconds with FTP, Git or TFS Start for free, scale up as your traffic grows
demo Node.js On Web Sites
1 web sites shared reserved SHARED INSTANCES shared
2 SHARED INSTANCES web sites shared reserved shared
SHARED INSTANCES web sites 1 shared reserved RESERVED INSTANCE 0 reserved
web sites 2 shared reserved RESERVED INSTANCE reserved
web sites 2 shared reserved RESERVED INSTANCE reserved
cloud services Build infinitely scalable apps and services Support rich multi-tier architectures Automated application management
Web Role Uses IISNode Worker Role Runs node.exe as role entry point PowerShell Cmdlets Windows Azure SDK for node.js
Node.js on Cloud Services
virtual machines Windows Server and Linux Flexible Workload Support Virtual Private Networking
Windows Server 2008 R2 Windows Server 2008 R2 with SQL Server 2012 Evaluation Windows Server 2012 Release Candidate OpenSUSE 12.1 CentOS 6.2 Ubuntu SUSE Linux Enterprise Server SP2
Each Persistent Data Disk Can be up to 1 TB VM SizeCPU CoresMemoryBandwidth # Data Disks Extra SmallShared768 MB5 (Mbps)1 Small11.75 GB100 (Mbps)2 Medium23.5 GB200 (Mbps)4 Large47 GB400 (Mbps)8 Extra Large814 GB800 (Mbps)16
MongoDB & Redis
application building blocks
> npm -g install azure
Windows Azure SQL Databases > npm -g install node-sqlserver
Demo
demo Windows Azure Storage
demo Windows Azure Service Bus Queues and Topics
demo SQL Databases
Please Complete an Evaluation :-)
Meetwindowsazure.com DOWNLOAD Windows Azure Windowsazure.com/ teched Hands-On Labs
Connect. Share. Discuss. Learning Microsoft Certification & Training Resources TechNet Resources for IT Professionals Resources for Developers
Evaluations Submit your evals online
Node.js Overview IIS Node Node Modules + NPM Windows Azure Windows Azure SDK for node.js