1

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.

Joana Deluca Kleis
  • 295
  • 1
  • 3
  • 7

1 Answers1

1

Yes, it is possible to do what you want. You can start reading this documentation about Redis & SignalR.

Kiril1512
  • 3,231
  • 3
  • 16
  • 41
  • 1
    Yeah, I noticed SignalR syncs its groups with Redis by adding channels, so I could check if a group exists or not by checking the channels. And in Redis I can check that by running `pubsub channels` – Joana Deluca Kleis Mar 04 '20 at 20:26