About Node.js

Lahiru Kariyawasam
2 min readMay 14, 2022

What is Node.js?

Node.js is a cross-platform open-source runtime environment for creating server-side and networking applications. Node.js apps are written in JavaScript and may be executed on Microsoft Windows, OS X, and Linux using the Node.js runtime.

Node.js also has an extensive library of JavaScript modules, which significantly facilitates the creation of web applications using Node.js.

Node.js Advantages

  1. Node.js library is rapid in code execution since it is built on Google Chrome’s V8 JavaScript Engine.
  2. Node.js employs a single-threaded paradigm with event looping, however, it is highly scalable. In contrast to typical servers, which establish restricted threads to process requests, the event mechanism allows the server to reply in a non-blocking manner and makes the server very scalable. Node.js uses a single-threaded program, meaning the same program can handle many more requests than conventional servers such as Apache HTTP Server.
  3. Asynchronous and Event Driven All APIs in the Node.js library are asynchronous, which means they are not blocking. It simply implies that a Node. the js-based server will never have to wait for an API to return data. After accessing an API, the server goes on to the next one, and a Node.js notification mechanism assists the server in receiving a response from the previous API request.
  4. No data is ever buffered in Node.js apps. These programs simply produce data in chunks.

--

--