Untitled

Node.js is an event-based platform which means that everything that happens in Node.js is the reaction to an event. The event loop is called the heart of Node.js.

A Node.js app runs in a single process, without creating a new thread for every request. Node.js provides a set of asynchronous I/O primitives in its standard library that prevent JavaScript code from blocking and generally, libraries in Node.js are written using non-blocking paradigms, making blocking behavior the exception rather than the norm.

Components of the Node.js Architecture:

Source: https://nodejs.dev/en/learn/

Source: https://www.geeksforgeeks.org/node-js-web-application-architecture/

Source: https://litslink.com/blog/node-js-architecture-from-a-to-z