Tuesday 25 December 2012

Features of Node.js

Features:
The main features of node.js as follows

Event-Driven
Non blocking I/O
Node Package Manager
Web Sockets




Even Driven:

Node.js is  an event driven model. Programming node.js has lots of call backs.It is single threaded. So, only one thing happens at once.

lets take an example,

Paper boy will deliver the papers regularly from starting nearest house.He will deliver the paper one by one home.If somebody asks for paper which is not delivered by the paper boy, he may deliver or not deliver. Calling the paper boy is like a callback. Similarly, in node.js also lots of call backs involved.



Non Blocking I/O:
Non blocking means other operations can be done while another operation is in progress.


Node Package Manager:

It contains collection of node modules. for more details see  NPM topic in the same blog.

Web Sockets:
Web sockets provides bidirectional communication over single TCP.
It is the standard way for server to send messages to client without client request.



these are the main features of node.js








0 comments:

Post a Comment