24
Peter Laudati Developer Evangelist Microsoft Corp. peterlaudati.com @JrzyShr Intro to Node.js on Windows

Node.philly Intro to Node.js on Windows

Embed Size (px)

DESCRIPTION

A quick intro to Node.js on Windows & Windows Azure from the Node.Philly event on 4/23/2012 in Philadelphia, Pa

Citation preview

Page 1: Node.philly Intro to Node.js on Windows

Peter LaudatiDeveloper EvangelistMicrosoft Corp.peterlaudati.com@JrzyShr

Intro to Node.js on Windows

Page 2: Node.philly Intro to Node.js on Windows

Disclaimer!!!

Until ~January, I had only read about Node.js on Twitter and knew it only as something the cool kids were playing with.

Page 3: Node.philly Intro to Node.js on Windows

Disclaimer!!!

Until ~January, I had only read about Node.js on Twitter and knew it only as something the cool kids were playing with.

Translation:

I know very little about Node.js. Just a little more than some of you, and a LOT less than the rest of you.

Page 4: Node.philly Intro to Node.js on Windows

Disclaimer!!!

Until ~January, I had only read about Node.js on Twitter and knew it only as something the cool kids were playing with.

Translation:

I know very little about Node.js. Just a little more than some of you, and a LOT less than the rest of you.

Real Translation:

Don’t throw tomatoes at me! Help me fill the gaps of my knowledge.

Page 5: Node.philly Intro to Node.js on Windows

What is Node.js?

Page 6: Node.philly Intro to Node.js on Windows

Asynchronous & Single-threaded

What is Node.js?in a word (or two)...

Page 7: Node.philly Intro to Node.js on Windows

Asynchronous & Single-threaded

What is Node.js?in a word (or two or 56)...

“Node is an asynchronous distributed programming platform built on top of Chrome’s V8 JavaScript engine (the same engine used to parse and execute client-side JavaScript inside Chrome.) Node is actually server-side JavaScript, but its syntax and prose are familiar to every web developer to some extent.

Node’s true innovation is its evented + asynchronous I/O model.”-Aaron Stannard

Microsoft Evangelist – Californiahttp://www.aaronstannard.com/post/2011/12/14/Intro-to-NodeJS-for-NET-Developers.aspx

Page 8: Node.philly Intro to Node.js on Windows
Page 9: Node.philly Intro to Node.js on Windows

• IISNode project – a joint collaboration between Microsoft & Joyent.

As a result:• Node runs natively on Windows with out CynWin• Node can be run as a managed module inside of IIS• Node can now run on Windows Azure• NPM package for having Node.JS interop with SQL Server.• NPM package for having Node.JS connect to Azure Services

(storage, etc)• Node.js is great at tasks like:

• Real-time notifications• Web sockets

Microsoft has a new found love for Node.js

Page 10: Node.philly Intro to Node.js on Windows

Why Node.js on Windows or Windows

Azure?

Page 11: Node.philly Intro to Node.js on Windows

IISNode benefitsScalability on multi-core servers.

Since node.exe is a single threaded process, it only scales to one CPU core. The iisnode module allows creation of multiple node.exe processes per application and load balances the HTTP traffic between them, therefore enabling full utilization of a server’s CPU capacity without requiring additional infrastructure code from an application developer.

Process management.

The iisnode module takes care of lifetime management of node.exe processes making it simple to improve overall reliability. You don’t have to implement infrastructure to start, stop, and monitor the processes.

Page 12: Node.philly Intro to Node.js on Windows

Hello World Node.json Windows

demo

Page 13: Node.philly Intro to Node.js on Windows

Breaking News!!!Cloud 9 IDE Azure

IntegrationFor the first time in any language, you can deploy a Node.js app to Azure via the browser from any platform!

At Node Summit in San Francisco in January, Scott Guthrie from Microsoft demoed this from a Mac.

Page 14: Node.philly Intro to Node.js on Windows

What is Windows Azure?

Page 15: Node.philly Intro to Node.js on Windows

Windows Azure isa place to run your

applications.

Page 16: Node.philly Intro to Node.js on Windows

Windows Azure isa place to run your

applications.Starting at $0.02/hr, or… ~$15/month

FREE with 90-day trial OR MSDN Subscription

Page 17: Node.philly Intro to Node.js on Windows

Or store your data.

Page 18: Node.philly Intro to Node.js on Windows

Or store your data.Non-Relational at $0.125/GB per month

Relational starting at $5.00/monthFREE with 90-day trial OR MSDN

Subscription

Page 19: Node.philly Intro to Node.js on Windows

Or both.

Page 20: Node.philly Intro to Node.js on Windows

Or both.Starting at ~$20/month ($15 compute + $5

SQL)FREE with 90-day trial OR MSDN

Subscription

Page 21: Node.philly Intro to Node.js on Windows

And a lot of other stuff too…

Page 22: Node.philly Intro to Node.js on Windows

And a lot of other stuff too…CDN, Distributed Caching, Access Control

Service, Service Bus, & Traffic Manager, etc…

Page 23: Node.philly Intro to Node.js on Windows

Hello World Node.json Windows Azure

demo