Making SignalR work with Redis backplane is as simple as adding AddStackExchangeRedis("localhost:6379");
to AddSignalR
in Startup.cs
.
So when I add a connection to a group in SignalR using this.Groups.AddToGroupAsync(connectionId, groupName);
, Redis will also keep track of my group, right?
Is it possible to know when a new group is added to Redis or removed? An event or something? Or is it possible to programmatically check if a group exists? I'm Redis newbie.
Yes, it is possible to do what you want. You can start reading this documentation about Redis & SignalR.