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

Horizontal Scaling with Redis as Storage Backend #6

Closed
jsenecal opened this issue Nov 12, 2015 · 6 comments
Closed

Horizontal Scaling with Redis as Storage Backend #6

jsenecal opened this issue Nov 12, 2015 · 6 comments

Comments

@jsenecal
Copy link

Hello there,

I'm about to step in to contributing to that project but needed to know what were your plans first.

In the docs you say:

A limitation in the current release of the Socket.IO server is that because the clients are randomly assigned to different server processes, any form of broadcasting is not supported. A storage backend that enables multiple processes to share information about clients is currently in development to address this important limitation.

So my proposed solution to that is to implement that storage backend using Redis PUBSUB.
Many others have seen this as the go-to way of doing multi-processing and it has the advantage of offering horizontal scaling. (An example of this can be found HERE with NodeJS)

@miguelgrinberg
Copy link
Owner

Yes, I'm actually working on this myself. Redis pubsub is also my first choice, but I want to ensure other backends can also be used in the future.

@miguelgrinberg
Copy link
Owner

@jsenecal a simple, initial implementation of the redis backend for horizontal scaling is committed to branch v1.0 in this repository.

@gamella
Copy link

gamella commented Dec 2, 2015

@miguelgrinberg Great works! I really want this feature. Can you share the schedule of v1.0?

@miguelgrinberg
Copy link
Owner

I don't have a strict timeline. The code is working fairly well, but needs more testing. I'm in the process of writing the documentation and unit tests now, so it's coming soon.

@gamella
Copy link

gamella commented Dec 3, 2015

Cool!

@miguelgrinberg
Copy link
Owner

This feature is implemented in version 0.8 of this package.

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

No branches or pull requests

3 participants