NodeJS inside-out (High level)
Table of contents
NodeJS is a server-side platform which includes Chrome V8 engine to run JS and Node API or modules, analogous to Java Runtime Environment (JRE) which includes Java Virtual Machine (JVM) and library classes.
Key features
It is single-threaded.
It is asynchronous and non-blocking, which indicates all the requests need not be queued to be executed by the single main thread. Instead it uses event loop which helps the main thread to be non-blocking by putting all the blocking tasks to the event loop queue. To create a clear mindmap see the architecture further below.
V8 engine enhances the performance of JS in chrome browser. Just In Time (JIT) compiler does not produce intermediate code, instead compiles down to machine code, increasing performance.
Highly scalable for low CPU and high IO intensive requirement.
Post-mortem
Bisecting NodeJS below:
NodeJS architecture:
Signing off, thank you.