-
Hello! Please give some information about how to use how to use Pub/Sub for sentinel events. I use Spring data with lettuce. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I find in other disscussion some ideas:
Problems:
|
Beta Was this translation helpful? Give feedback.
-
Hey @Renboo , Can you give some more details on what you want to achieve and also some code samples? I think you might be confusing two different features here:
They are different features and can be used both together and independently from each other. For more information on how to use them in Lettuce you can check out Pub/sub in the Lettuce driver and Redis Sentinel in the Lettuce driver |
Beta Was this translation helpful? Give feedback.
-
Hey @tishun I have a requirement to use Sentinel with High Availability way. For me it means that first of all i get master node info from Sentinels and then i will subscribe/psubscribe to master changes events to change connection address as fast as possible. |
Beta Was this translation helpful? Give feedback.
In order to use Sentinel toy do not need to use pub/sub, the driver would handle changes to the environment for you.
For more details see Redis Sentinel and Redis discovery using Redis Sentinel, specifically: