Working Process of Node.js Last Updated : 01 Jun, 2020 Comments Improve Suggest changes Like Article Like Report Node.js is an open-source and cross-platform runtime that build on top chrome's v8 JavaScript engine. Basically, now a days it is very popular. Many server uses node.js to run applications. Why it is so famous? There are mainly two features that make Node.js famous: Non blocking I/OAsynchronous Non Blocking I/O: Consider a server and a client and the client send the request for some data then the server sends the response to the client. what happens when multiple (I/O) request comes- Node basically runs a single thread, but what it does when the request comes it sends that request to some other workers, that workers process the request. The request may I/O operation or fetching data from the database or interacting with some other servers to perform the operation. So by this, there is no delay in accepting the request. Let's compare it with some other server like tomcat, it has some 200 threads running means it can accept 200 requests what if 210 request comes then that 10 request has to wait for some time. This can be solved by using node.js. But behind the scene, node.js uses libuv library that specially built for node.js and it can be used by other frameworks too. This libuv is built using C language. C internally uses system kernels that have multiple threads. In node.js, we are not using multiple threads. But in behind the node uses multiple thread concept. Asynchronous: In non-blocking, we have discussed only request but what if client 1 process is completed and the server sends request here comes asynchronous concept. The movement when we get the response node will execute the call back function (event loop). Then sends the response back to the client. Node is preferred when we have more I/O related operations. As it lags when it is CPU intensive work because of single-threaded. Node.js can handle up to 34k transactions per second with a latency of 2 to 300 milliseconds. Comment More infoAdvertise with us V vinay_nb Follow Improve Article Tags : Web Technologies Node.js Node.js-Misc Similar Reads Explain the working of Node.js Welcome to the world of Node.js, an open-source runtime environment that has transformed the landscape of backend development. Traditionally, JavaScript was confined for frontend development, powering user interactions on the browser. However, with the advent of Node.js, JavaScript has broken free f 4 min read Node.js Projects Node.js is one of the most popular JavaScript runtime environments widely used in the software industry for projects in different domains like web applications, real-time chat applications, RESTful APIs, microservices, and more due to its high performance, scalability, non-blocking I/O, and many oth 9 min read Node.js Process Complete Reference A process object is a global object that gives information about and controls the node.js process. As it is global, it can be used in the project without importing it from any module. Table of Content Understanding Node.js ProcessesEvents and Event-driven ArchitectureExecution Models and Asynchronou 5 min read Node Child Process NodeJS is designed to be single-threaded, but it provides a child_process module to create and manage child processes. This allows you to run system commands, execute other scripts, and perform computationally expensive tasks in parallel. The child process module is essential for tasks like running 5 min read Node.js Process exit Event The process is the global object in Node.js that keeps track of and contains all the information of the particular node.js process that is executing at a particular time on the machine. The process.exit() method is the method that is used to end the Node.js process. Every process action on the mach 2 min read Node.js with TypeScript If you're immersed in the world of Node.js development, you're likely acquainted with the hurdles of handling and expanding a substantial codebase. A viable solution to tackle this is leveraging TypeScript, a statically-typed superset of JavaScript. TypeScript enriches the language with optional typ 6 min read Node.js Web Server A NodeJS web server is a server built using NodeJS to handle HTTP requests and responses. Unlike traditional web servers like Apache or Nginx, which are primarily designed to give static content, NodeJS web servers can handle both static and dynamic content while supporting real-time communication. 6 min read What is the purpose of process object in Node.js ? A process object is a global object available in the Node.js environment. It is globally available. We do not have to use the require() to import the module of the process object. The "process" object use to get current Node.js process details & also give control over that process. Properties of 2 min read Node.js Tutorial Node.js is a powerful, open-source, and cross-platform JavaScript runtime environment built on Chrome's V8 engine. It allows you to run JavaScript code outside the browser, making it ideal for building scalable server-side and networking applications.JavaScript was earlier mainly used for frontend d 4 min read How to Send JSON Response using Node.js ? NodeJS is the runtime environment, which can execute the javascript code on any platform. It is widely used to create and run web application servers because of its salient features.During production, several times we need to send the resources or some type of information as a response, and javascri 5 min read Like