Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redis Cluster with SignalR Backplane

Our application uses SignalR. We need to support load balanced deployment for high availability. We also use clustered Redis for caching in our app.

We are thinking of using the same Redis cluster as SignalR backplane to scale out.

But the GlobalHost.DependencyResolver.UseRedis() doesn't support multiple servers to be passed as arguments.

Please guide us on how to achieve the same if it is possible ?

like image 406
Devrath N D Avatar asked Oct 18 '22 00:10

Devrath N D


1 Answers

Instead of adding specific redis server/port in the the UseRedis() function, send in a RedisScaleoutConfiguration which will take in a string as the connection string to redis. This connection string will take in multiple servers. Works like a champ!

like image 84
Rodney Pannell Avatar answered Oct 21 '22 05:10

Rodney Pannell