Replies: 2 comments 1 reply
-
| Not sure if the same team maintains this documentation, but it would probably be helpful to call out explicitly that using  https://redis.uptrace.dev/guide/go-redis-sentinel.html#redis-server-client | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| 
 | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Redis to store cached product data but currently caching it by different floor plans, IE: US, vs International. Because they have the same keys I am keeping them in different Redis databases 0 and 1 respectively. I was using
NewFailoverClusterClientbecause I want to route reads to replicas for max throughput and performance. However, everything was written to DB 0. After looking at the code it made sense sinceNewFailoverClusterClientis just an adapter for ClusterClient which doesn't support multiple DBs. So I suppose my question is what are the best practices if I want to use Sentinel and multiple databases? Ideally, I'd like reads to be distributed but it isn't clear to me thatNewFailureClientdoesn't just send all reads/writes to whatever node is currently the master.Beta Was this translation helpful? Give feedback.
All reactions