After completing this tutorial you will be able to understand:
- What is Node.Js?
- Features of Node.Js.
- Where to use Node.Js
- Components of Node.Js.
Node.Js is an open source runtime environment for building Network and I/O intensive web application.
The official definition for Node Js is as follow:
Components of Node.Js:
Node.Js has following components:
Features of Node.Js:
Node.Js provides following features:
1- Extremely fast:
2- I/O is Asynchronous and Event Driven:
All APIs of Node.js library is asynchronous i.e. non-blocking. So a Node.js based server never waits for an API to return data. The server moves to the next API after calling it and a notification mechanism of Events of Node.js helps the server to get a response from the previous API call. It is also a reason that it is very fast.
3- Single threaded:
Node.js follows a single threaded model with event looping.
4- Highly Scalable:
Node.js is highly scalable because event mechanism helps the server to respond in a non-blocking way.
5- No buffering:
Node.js eliminates the processing time while uploading audio and video files. Node.js applications never buffer any data. These applications simply output the data in chunks.
6- Open source:
Node.js has an open source community which has produced many excellent modules to add additional capabilities to Node.js applications.
Node.js is released under the MIT license.
Where to use Node.Js?
- I/O bound Applications.
- Data Streaming Applications.
- Data Intensive Real-time Applications (DIRT).
- JSON APIs based Applications.
- Single Page Applications.
Hope this tutorial will help you to understand What exactly is Node.Js and where to use Node.Js library. I will appreciate your feedback, comments and Suggestions.