Internals of Node.js
In this post, we will discuss how Node.js actually works internally.
Node.js has a collection of dependencies internally that actually executes our code.
The two most important ones are the V8 and libuv projects.
libuv is also an open-source project that gives Node access to the operating systems underlying file-system, networking… and also handles some sort of concurrency as well.
If you go inside the Node.js repo on GitHub, you can see how Node uses V8 and libuv.
You might ask what the purpose of Node.js actually is.
Node.js provides wrappers and consistent and unified APIs for us to use inside our projects. Example: HTTP, crypto, path…
This is how Node.js internally works and in the next post, we will look into the Event Loop and Threads. Follow me not to miss them.