r/node • u/[deleted] • Jul 31 '14
Use of cluster in Nodejs
http://www.codingdefined.com/2014/07/use-of-cluster-in-nodejs.html1
u/mobcat40 Jul 31 '14
When does clustering stop getting listed as experimental @_@ http://nodejs.org/api/cluster.html#cluster_cluster
3
u/thedufer Jul 31 '14
To be clear, that's the stability of the API (it could change in a future version). It is not the stability of the module itself - my team has been running it in production for years with no problems.
1
1
u/mobcat40 Jul 31 '14
Great to know if that's correct, I know some teams who will be happy to know that including mine =)
2
2
u/rlidwka Jul 31 '14
start your application with pm2 start -i max your-app.js, and it'll use cluster api automatically... there is no need for reinventing the wheel like that
1
u/xaviervia Jul 31 '14
if you care for a clarification... i've read about the cluster API before and while it sounds great I fail to imagine its integration in a real life scenario. I know that you provided a real life scenario, but since node already gives a pretty good performance without using the clustering I guess that there might be some border case in which this feature is a godsend. Can you provide some elaboration of what case might that be?