Q54: How does the Cluster module work in Node.js?
The cluster module allows creating child processes (workers) that share server ports, enabling a multi-core system to handle higher application workloads.
Key Takeaways
- Clustering spawns multiple processes to utilize multi-core CPUs.
- Worker processes share the same networking ports.
Knowledge Check
How do cluster worker processes communicate with the primary process?