DEV Community

Discussion on: Optimize Node.js performance with clustering

Collapse
 
leandroandrade profile image
Leandro Andrade

Hi Ajit.

In this case, no make cense use node cluster because when use docker container, problably you will use some orchestrator, like Kubernetes.

The container orchestrator will responsable to scale instances of your application.

Use case for cluster is when you run you container in some host and you'd like to use all CPU resources. Something like a instance of you Node.js application for each CPU.

Collapse
 
ajitfawade profile image
Ajit Fawade

Thanks, Leandro for the detailed answer.