Skip to content

Sharing a RedisClusterClient among different clusters is possible? #2083

Answered by mp911de
elmart-devo asked this question in Q&A
Discussion options

You must be logged in to vote

RedisClusterClient is designed to work with a single cluster. It keeps the topology and refresh mechanics for a single cluster and doesn't allow to switch between clusters. You can instantiate a second RedisClusterClient instance for your other cluster. Just make sure to reuse event loops by providing a managed ClientResources instance to not create duplicate I/O thread pools.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@elmart-devo
Comment options

Answer selected by elmart-devo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants