
The event loop will finish all prior and current requests before executing a callback function to send the server’s response to the client. Once it has received a response from the previous API call, it puts the reply in the event queue. On the asynchronous architecture, the event loop operates in an event-driven manner. Asynchronous ArchitectureĪs previously discussed, the Node.js thread doesn’t wait for a response and moves on to process a subsequent request. That said, Node.js is not suitable for CPU-intensive tasks as they could prevent the main thread from handling other requests, effectively blocking it. This way, it can handle a massive amount of concurrent requests.

Instead of blocking the thread and wasting CPU resources by waiting for a response, Node.js will continue working on the next task. Node.js employs non-blocking I/O operations – when a client sends a request to the web server, the single-threaded event loop picks it up and sends it to a worker thread for processing. A thread is a set of instructions that need to be performed by the server. It operates as a single process, which means it doesn’t create a new thread for every request. How Does Node.js WorkĬompared to other platforms, Node.js has a particular workflow. It is open-source software to build real-time and scalable network applications. Since the moment it was created, Node has evolved tremendously, and while there are many things to like about Node, some of the main ones are - large community, since that tremendously saves time on feature development, as well as the fact that with the help of Node, it's never been easier to build Full-Stack Apps, since both Front-End And Back-End are built in one language, and you guessed that language is our beloved Javascript.ĭuring the course we will cover following main technologies - NodeJS, ExpressJS, MongoDB, Mongoose, JWT and many smaller ones as is a single-threaded, cross-platform runtime environment built on Chrome’s V8 JavaScript engine.

NodeJS was created in 2009 and it's built on top of Chrome's V8 Javascript Engine. As you are probably aware of, every browser has an engine, a tool that compiles our code down to machine code and Chrome uses one by the name of V8. What is a NodeJS? And even though there are plenty of good answers out there the one that I like the most is this one - "NodeJS is an environment to run Javascript outside of the Browser". I guess let’s start by answering the most pressing question first.


Welcome to NodeJS Tutorial and Projects Course.
