To scale a SignalR application across multiple servers, you need to share connection state and messages between instances. This is done using a
backplane, with Redis being the most popular and efficient choice.
Why Use a Redis Backplane?
SignalR stores connection info in-memory per server, so by default:
A message sent on Server A won't reach a client connected to Server B.
Redis solves this by syncing messages across servers.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
To scale a SignalR application across multiple servers, you need to share connection state and messages between instances. This is done using a backplane, with Redis being the most popular and efficient choice.
Why Use a Redis Backplane?
Steps to Set Up SignalR with Redis Backplane
1. Install Redis and Required NuGet Package
Install the Redis backplane package:
Ensure you have a Redis server running (locally, on Docker, or hosted).
2. Configure SignalR to Use Redis in
Startup.cs(orProgram.cs)For ASP.NET Core:
3. Use SignalR as Usual
No changes needed in your
Hubcode or client code — Redis handles syncing behind the scenes.When to Use Redis Backplane
Use Redis if:
What Redis Backplane Does Not Do
Additional Tips