How to scale your Node.js server using clustering

Michele Riva
Nov 27, 2018 · 7 min read
Image for post
Image for post

“A single instance of Node.js runs in a single thread. To take advantage of multi-core systems, the user will sometimes want to launch a cluster of Node.js processes to handle the load.”
- Node.js Documentation

Image for post
Image for post
Image for post
Image for post
./src/modules/log.js
./src/modules/job.js
./src/standard.js
Image for post
Image for post
The image I am currently manipulating (via Unsplash)
Image for post
Image for post
All credits to Pexels

To take advantage of multi-core systems, the user will sometimes want to launch a cluster of Node.js processes to handle the load.

Image for post
Image for post
All credit to Pexels

freeCodeCamp.org

This is no longer updated.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store