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

Namespaces #29

Closed
peteruithoven opened this issue Sep 29, 2014 · 3 comments
Closed

Namespaces #29

peteruithoven opened this issue Sep 29, 2014 · 3 comments

Comments

@peteruithoven
Copy link

What would be the best way to handle syncing namespace creation among clustered node.js instances?
When one instance creates namespaces and a client connects to another instance it won't find these namespaces and can't connect.
Is this something socket.io-redis should do or should I write my own pub/sub system to handle this?

@peteruithoven
Copy link
Author

I solved this by using my own Redis pub/sub system. My data management module is a EventEmittor. When it changes it's data it will publish this into a channel it's also subscribed to, (so all (clustered) instances of this module will receive this), it then emit's an event. The module that creates the namespaces now listens to this event.

@wonderdogone
Copy link

interesting. Are your namespaces being created dynamically. Say "per session" for example?

@darrachequesne
Copy link
Member

Seems solved. Please reopen if not.

Closing this now 👼

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