O'Reilly logo

Pro Node.js for Developers by Colin J. Ihrig

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 16

image

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required