-
Conceptions
- Asynchronous
- Event Loop
- IO operations
- Non blocking
-
Components
- V8
- libuv
What Makes Node.js Faster Than Java? (source)
Operations that are performed in main thread
using asynchronous non-blocking
system calls or in worker threads
.
Operation | Main thread | Worker thread |
---|---|---|
DNS | X | |
Filesystem | X | |
Pipe | X | |
TCP | X | |
TTY | X | |
UDP | X |
JS + V8 + libuv = Node.js