3 ms·
It was, and since 2009 the recommendation has been to run an instance of nodejs per CPU core. The justification is that if you're already scaling your app betwe
by josephg 6y ago
It was, and since 2009 the recommendation has been to run an instance of nodejs per CPU core. The justification is that if you're already scaling your app between servers, you shouldn't need a separate mechanism to scale across multiple cores in a single server.
I'm not sure when the cluster API was added, but its been in nodejs's core for a long time. (Not that you need to use it, but still.)
https://nodejs.org/api/cluster.html https://nodejs.org/api/cluster.html
- chrisweekly 6y agoyeah `pm2` has even made this painless since (many years ago)