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

Optimize sending message #2

Open
3rd-Eden opened this issue Feb 21, 2012 · 0 comments
Open

Optimize sending message #2

3rd-Eden opened this issue Feb 21, 2012 · 0 comments

Comments

@3rd-Eden
Copy link
Member

Description

When we send a message we are now calling engine#publish which does a publish to all connected nodes. When you cluster is growing in size (nodes) this will create a lot of pointless overhead because node's that doesn't have user connected will also receive this message.

Possible solutions

  • When a user connects to a RED node, we are going to store the hostname and process id and put that in Redis. So when we need to send a message to that user, we can fetch the sessions connected nodes and only broadcast to those. This probably also requires the engine to listen to another for dedicated messaging`
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

1 participant