20

My application uses the StackExchange.Redis package and I started using the sentinel architecture in order to support high availability and failures.

I've search the web, trying to find the correct way I should use the ConnectionMultiplexer object while using the sentinel architecture and couldn't really find a useful answer.

Some posts say that it doesn't support it yet or partially supports it, some tell you to add all your redis connection addresses to the connection string and some tell you that they provided a custom implementation by subscribing to events.

So, does the ConnectionMultiplexer support this kind of architecture?
If the answer is yes, how should my connection string look like?

Amir Popovich
  • 29,350
  • 9
  • 53
  • 99

1 Answers1

4

You might be looking for this:

https://github.com/StackExchange/StackExchange.Redis/pull/406

Pedro Luz
  • 973
  • 5
  • 14
  • 1
    TL;DR: Sentinel support has been added with [this PR](https://github.com/StackExchange/StackExchange.Redis/pull/1067). The required configuration for such a connection is documented [here](https://stackexchange.github.io/StackExchange.Redis/Configuration). – Namoshek Apr 05 '21 at 13:45