0% found this document useful (0 votes)
22 views1 page

Node Js

Node.js provides asynchronous and non-blocking APIs that allow it to handle many requests with a single thread. It uses an event-driven model and callback functions to notify when asynchronous operations complete, improving scalability. Node.js is also fast due to being powered by the V8 JavaScript engine and handles data output in chunks rather than buffering.

Uploaded by

utubeonly9455
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views1 page

Node Js

Node.js provides asynchronous and non-blocking APIs that allow it to handle many requests with a single thread. It uses an event-driven model and callback functions to notify when asynchronous operations complete, improving scalability. Node.js is also fast due to being powered by the V8 JavaScript engine and handles data output in chunks rather than buffering.

Uploaded by

utubeonly9455
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 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