Node.js under the Hood
May 16th, 2018
So, what is Node.js actually?
The answer is simple- “THE BROWSER”
The approach used for Node.js is pretty much the same
- I/O (ways to deal with file system operations)
- Database management
- Networking related operations(ability to communicate over the internet
- Ability to request and send standard(HTTP) responses
- Ability to deal with resource intensive work and still keep the web server service available to the clients.
Node.js uses the “chrome V8 engine”
Node is a c++ program with V8 embedded with many features which makes it suitable to use as a backend technology
So, now the question arises “In which language is node written?”
Well, the Answer is the same language which was used to write the chrome V8 engine.
C/C++ lets you have a degree of control of the lower level because c++ is designed closer to the machine language and the microprocessor.
C++ has been used to write node.js because the V8 engine has been written in the same language, and features needed to make it a backend technology implementation have been added or embedded into the V8 engine by the provided hooks.