November 2013
Intermediate to advanced
308 pages
8h 8m
English
CHAPTER 16
![]()
Application Scaling
Scaling Node.js applications can be a challenge. JavaScript’s single threaded nature prevents Node from taking advantage of modern multi-core hardware. In order to scale effectively, Node applications must find a way to take advantage of all of the resources at their disposal. The cluster core module serves this purpose, allowing a single application to launch a collection of Node processes that share resources while distributing the load.
Another way to scale a Node application is to reduce the amount of work the application must complete. A perfect example of this is a web server that serves both static and dynamic ...
Read now
Unlock full access