Click here to load reader
Upload
shiju-varghese
View
1.107
Download
2
Embed Size (px)
Citation preview
Introduction to Node.js
Shiju Varghesehttps://github.com/shijuvar
About Me Microsoft MVP Works as a Cloud Solutions Architect Focuses on Cloud and Enterprise Mobility Twitter - @shijucv Github - https://github.com/shijuvar Blog – http://weblogs.asp.net/shijuvarghese
Agenda• Introduction to Node.js• Demonstrate how to build apps with Node.js
Case Study – LinkedIn Mobile“On the server side, our entire mobile software stack is completely built in Node. We use a ton of technologies at LinkedIn, but for the mobile server piece, it’s entirely Node-based”Kiran Prasad,Director of Engineering, Mobile at LinkedIn
Case Study – LinkedIn Mobile“The improvements the team saw were staggering. They went from running 15 servers with 15 instances (virtual servers) on each physical machine, to just four instances that can handle double the traffic. The capacity estimate is based on load testing the team has done”Kiran Prasad,Director of Engineering,Mobile at LinkedInSource : http://venturebeat.com/2011/08/16/linkedin-node/
Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
Node.js
Building an HTTP Server in Node.js
Node.js• Started in 2009 by Ryan Dahl• Sponsored by • Second most popular project on GitHub
What is Node.js• JavaScript on the Server!• Built on Google’s V8 Engine• Event driven I/O server-side JavaScript• Non-Blocking I/O• Not thread based, each connection uses only
a small heap allocation• Efficient and highly scalable
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• 45,100 Node modules currently available• Use through the command line: C:\nodejs> npm install express C:\nodejs> npm install socket.io C:\nodejs> npm install derby
Full-Stack Web App Frameworks
• Yahoo! Mojito• Derby• Meteor
Node.js is good for..• Real-time, Collaborative Apps• REST APIs• Mobile Backend Services• Backend for Client-oriented Web UIs and
Single Page Apps• Network Apps, Custom network services
Node.js is not good for• CPU-bound Apps
Nothing but demos
Source : http://www.engineyard.com/infographics/nodejs
Be well,write good code,
and stay in touch@shijucv
https://github.com/shijuvar