Heroku can run
and
so that Web Dynos take care of routes
and worker Worker Dynos take care of processing works.
Since there is a unit of Dyno,
It seems using Node.js cluster module is meaningless to me on Heroku.
Because Node.js cluster module is to use all cores of server CPU
and Dyno seems virtual unit of CPU core to me.
Am I right? Or is it still worth to run a node.js app with cluster module?
I've found that it actually worth to use cluster module
because each dyno has 4 CPU cores.
Reference: http://www.quora.com/Heroku/How-powerful-is-one-Heroku-dyno
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With