Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Node.philly Intro to Node.js on Windows
1. Intro to Node.js on Windows
Peter Laudati
Developer Evangelist
Microsoft Corp.
peterlaudati.com
@JrzyShr
2. Disclaimer!!!
Until ~January, I had only read about Node.js on Twitter and knew it only
as something the cool kids were playing with.
3. 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.
4. 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.
7. What is Node.js?
in a word (or two or 56)...
Asynchronous & Single-threaded
“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 – California
http://www.aaronstannard.com/post/2011/12/14/Intro-to-NodeJS-for-NET-Developers.aspx
8.
9. Microsoft has a new found love for
Node.js project – a joint collaboration between Microsoft & Joyent.
• IISNode
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
11. IISNode benefits
Scalability 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.
13. Breaking News!!!
Cloud 9 IDE Azure Integration
For 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.