Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
avstuff3308yNo experience with this but I think PM2 can spin up multiple workers and distribute load amongst them to help. Don't quote me on this but I think you can actually define different load strategies too.
-
avstuff3308yI'll be following this as I am curious about scalability with node.js applications in general.
-
coookie26128yFrom the top of my head, how about using all the cores by launching multiple instances using the cluster module? On a side not, socket.io doesn't play well with multiple instances as the handshake sometimes ends up on a different instance than it was initiated on. Although, a basic fix is to use sticky load balancing. Thoughts?
-
coookie26128yAnd I would highly suggest to post your question on the node gitter channel, they respond quickly!
Related Rants
Any of you guys have experience on scaling a node.js app with socket.io past 10000+ concurrent connections? 🙂
undefined
node.js
socket.io