June 2014
Intermediate to advanced
696 pages
38h 52m
English
In Chapter 4, “Using Events, Listeners, Timers, and Callbacks in Node.js,” you learned that Node.js applications run on a single thread rather than multiple threads. Using a single thread for application processing makes Node.js processes more efficient and faster. But most servers have multiple processors, and you can scale your Node.js applications by taking advantage of them. Node.js allows you to fork work from the main application to separate processes that can then be processed in parallel with each other and the main application.
To facilitate utilizing multiple processes, Node.js provides three specific modules. The process module provides access to the running processes. The ...
Read now
Unlock full access