Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scalability of socket.io 1.0 in Node.js cluster #1457

Closed
cleancoderocker opened this issue Mar 20, 2014 · 3 comments
Closed

Scalability of socket.io 1.0 in Node.js cluster #1457

cleancoderocker opened this issue Mar 20, 2014 · 3 comments

Comments

@cleancoderocker
Copy link

How scalable will socket.io 1.0 be when used in a Node.js cluster? In the previous versions (<= 0.9.16) there is the concept of stores (including a Redis store for synchronizing socket connection data between Node.js workers / nodes within a cluster). Does this concept exist in the new version as well? I've read that there are some problems / concerns about this approach (see https://medium.com/p/2c8ad1153332 or http://www.farennikov.com/2013/06/scaling-socket-io-with-node-js-cluster/). Can you give an overview of the current status?
Thanks in advance

@setthase
Copy link

setthase commented Apr 8, 2014

I also would like to know about this.

@rauchg
Copy link
Contributor

rauchg commented Apr 8, 2014

@cleancoderocker currently not using cluster myself, but should be easy to implement.
I would use something like https://github.com/indutny/sticky-session and the new redis adapter (https://github.com/automattic/socket.io-redis).

For a scalable multi-node example check out: https://github.com/guille/weplay

@rauchg rauchg closed this as completed Apr 8, 2014
@cleancoderocker
Copy link
Author

@guille thanks, I will have a look at those

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants