Last post Aug 06, 2019 01:47 AM by Brando ZWZ
None
0 Points
72 Posts
Jul 31, 2019 07:23 AM|mark1961|LINK
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.
Star
9831 Points
3120 Posts
Aug 06, 2019 01:47 AM|Brando ZWZ|LINK
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
None
0 Points
72 Posts
Redis sentinels and SignalR
Jul 31, 2019 07:23 AM|mark1961|LINK
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.
Star
9831 Points
3120 Posts
Re: Redis sentinels and SignalR
Aug 06, 2019 01:47 AM|Brando ZWZ|LINK
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