CodeZettaInterview Hub

Node.js · Clustering · Fresh / Intern · Concept

What does the Node `cluster` module do?

Short Interview Answer

Forks worker processes sharing server ports via the master, utilizing multi-core CPUs.

Detailed Explanation

Each worker has its own event loop/memory. Not a substitute for proper multi-host deployment, but useful on one machine.

Did you know this answer?