November 2013
Intermediate to advanced
148 pages
3h 12m
English
Node.js couples JavaScript with an event loop for quickly dispatching operations when events occur. Many JavaScript environments use an event loop, but it is a core feature of Node.js.
Node’s philosophy is to give you low-level access to the event loop and to system resources. Or, in the words of core committer Felix Geisendörfer, in Node “everything runs in parallel except your code.”[4]
If this seems a little backwards to you, don’t worry. The following figure shows how the event loop works.

As long as there’s something left to do, Node’s event loop will keep spinning. Whenever an event ...
Read now
Unlock full access