introduction to node js

16

Click here to load reader

Upload: shiju-varghese

Post on 16-Apr-2017

1.107 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Introduction to Node js

Introduction to Node.js

Shiju Varghesehttps://github.com/shijuvar

Page 2: Introduction to Node js

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

Page 3: Introduction to Node js

Agenda• Introduction to Node.js• Demonstrate how to build apps with Node.js

Page 4: Introduction to 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

Page 5: Introduction to Node js

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/

Page 6: Introduction to Node js

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

Page 7: Introduction to Node js

Building an HTTP Server in Node.js

Page 8: Introduction to Node js

Node.js• Started in 2009 by Ryan Dahl• Sponsored by • Second most popular project on GitHub

Page 9: Introduction to Node js

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

Page 10: Introduction to Node js

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

Page 11: Introduction to Node js

Full-Stack Web App Frameworks

• Yahoo! Mojito• Derby• Meteor

Page 12: Introduction to Node js

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

Page 13: Introduction to Node js

Node.js is not good for• CPU-bound Apps

Page 14: Introduction to Node js

Nothing but demos

Page 15: Introduction to Node js

Source : http://www.engineyard.com/infographics/nodejs

Page 16: Introduction to Node js

Be well,write good code,

and stay in touch@shijucv

https://github.com/shijuvar