You are on page 1of 1

1.

Mention the benefits of using Node.js.

View Answer
Below are the main benefits of using Node.js:

The APIs in Node.js are asynchronous which means that they do not cause blockers.
This happens due to the Node.js server not waiting for the return of data once an
API has been called. It moves on to the next API. Instead, there is a notification
mechanism that gets the response from the prior API call. Thus, we can also say
that Node.js is event-driven.
Node.js is powered by the Google Chrome V8 JavaScript Engine. This makes code
execution in the Node.js library super fast.
Node.js is based on a single-thread model with event looping. The event mechanism
in the Node.js library makes it highly scalable because it prevents blockers on the
server as compared to other servers that can only handle limited requests. In
Node.js, the single thread program can service copious requests compared to
something like Apache HTTP Server.
Because of the event mechanism in Node.js, there is no buffering. Instead, the data
output occurs in chunks.

You might also like