Node.js · Middle · Question 54 of 75
What does the cluster module do?
- ✓Correct answer: Starts several Node.js processes that share one server port, to use multiple CPU cores
- 2Groups npm packages
- 3Connects several databases into one
Explanation
In containers, a common alternative is one process per container and scaling with more containers (Kubernetes, Docker Swarm) or a process manager like PM2.