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 ...
Get Pro Node.js for Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.