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

Experiment using more specific channels #4

Open
exabrial opened this issue Jul 8, 2023 · 0 comments
Open

Experiment using more specific channels #4

exabrial opened this issue Jul 8, 2023 · 0 comments

Comments

@exabrial
Copy link
Owner

exabrial commented Jul 8, 2023

Right now, redex-sm broadcasts all session eviction and destruction events to all nodes. This is well tested and the scalability is proven in production, it's possible that having the sessionManager only subscribe to events for sessions it has in memory could allow even further extreme scaling. This theory would need to be tested.

Known constraints:

  • Right now, the sessionManager starts a thread for the eviction and destruction listeners. Starting 2 threads per session will cause a problem. We would likely need an async selector pattern of some sort.
  • Does Jedis allocate a connection for every listener? If so, this could be a problem too.
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

1 participant