What is Node.js

node.js
Node.js is a server-side platform built on V8 javascript Engine. V8 Engine is Google Chrome’s open source Javascript engine. It is an open source, the cross-platform runtime environment for developing server-side scripting applications and networking tools. It is mainly used to develop web applications.It can be used on the server side as well as on the client side. Node.js is developed by Ryan Dayl in 2009 and is governed by the Node.js Foundation.
The Node.js works on V8 Engine and it compiles javascript direct to machine code before executing it instead of bytecodes.

Node.js applications are written in javascript and runs on various platforms like Windows, Linux, Unix, Mac OS X, etc. It is asynchronous, event-driven, single-threaded and non-blocking. Its event-driven architecture of asynchronous makes it lightweight and efficient.

Node.js’s npm package system is the world’s largest ecosystem of open source libraries and has built thousands of open-source libraries for Node.js.

See history: History of Node.js
Official website : Node.js

Features of node.js

1) Asynchronous and Event Driven :

Mainly all APIs of Node.js library are asynchronous, it means its non-blocking. Node.js based server always ready for an API to return data response. It never waits to the previous API to complete and then moves to the next. The server moves to the next API after calling it and server have a notification mechanism of Events of Node.js which helps it to get the response from the previous API call. that’s Why it’s very fast.

2) Very Fast :

Node.js works on Google Chrome’s V8 JavaScript Engine, Node.js library is very fast in code execution. It compiles javascript direct to machine code before executing it.

3) Single-Threaded and Highly Scalable :

Node.js based on the single-threaded model with event looping. Its event mechanism is helpful to respond in a non-blocking way and can handle many requests with the single-threaded program.

4) No Buffering :

No buffering by using Node.js because these applications simply output the data in chunks.

5) Open Source

Node.js has an open source community and have built thousands of open-source libraries to use.

Leave a Reply

Your email address will not be published. Required fields are marked *