Nodejs Event Loop
- libuv
- There is only one thread
- Event loop runs in that one thread
- Async work done by async I/O interfaces provided by most operating systems. Only when that is not available does node fallback to a thread pool (with 4 threads).
- Event Loop Phases:
- Timers
- IO Callbacks
- IO Polling
- Set Immediate
- Close Events