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

PSubscribe subscribe to single (master) node in cluster #2

Open
garima803 opened this issue Jul 26, 2021 · 0 comments
Open

PSubscribe subscribe to single (master) node in cluster #2

garima803 opened this issue Jul 26, 2021 · 0 comments

Comments

@garima803
Copy link

garima803 commented Jul 26, 2021

Expected Behavior:
As per Redis documentation, Every node of a Redis cluster generates events about its own subset of the keyspace, However, unlike regular Pub/Sub communication in a cluster, events' notifications are not broadcasted to all nodes. keyspace events are node-specific. This means that to receive all keyspace events of a cluster, clients need to subscribe to each of the nodes.
https://redis.io/topics/notifications
Current Behavior:
aioredis-cluster lib has provided "psubscribe(self, pattern, *patterns)" to subscribe to patterns but this method subscribe to only one of the master node in cluster.
Question: Any recommended way to subscribe to all nodes of cluster to receive all keyspace events with the APIs supported by aioredis-cluster.
Or
Is there any way of subscribing dynamically to slave node turn into master in case of fail over (master brought down)?

Expected Behavior:

@garima803 garima803 changed the title Subscribe to master and slave for expiry event notification PSubscribe subscribe to single (master) node in cluster Jul 26, 2021
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