locked
Redis sentinels and SignalR RRS feed

  • Question

  • User640374800 posted

    My requirement is to return a redis sentinel connection to SignalR, as SignalR does not support Redis sentinels.

    It would not automatically pick up this master when a new master is promoted.

    My task is to create a custom connection factory to connect to the current master Redis node and return this connection for signalr.

    Either using StackExchange.Redis/ServiceStack to connect to the sentinel and ask the sentinel what the current master is. 

    OR

    Connect to each Redis node and perform an Info command to determine which node is currently master (role:master or role:slave)

    I have minimal experience of Redis and sentinels so advice appreciated.

    My coding language is C# and i have access to Redis Desktop Manager for my local Redis instance.

    Wednesday, July 31, 2019 7:23 AM

All replies

  • User283571144 posted

    Hi mark1961,

    As far as I know, there is no build-in function which could send the connection string to signalr application if redis changed the resource in C#.

    I suggest you could try to ask this issue on the github redis issue to ask developer for better help.

    https://github.com/antirez/redis/issues 

    Best Regards,

    Brando

    Tuesday, August 6, 2019 1:47 AM