ASP.NET Core & Web API (50 Qs)•Part 3: Distributed Systems, Kestrel Internals & Scalability (25 - 35)
Real-Time Communication with SignalR and Redis Backplane.
senior LevelSignalsSystem Design
In Simple Words: SignalR provides bidirectional real-time communication between server and clients:
- Automatically negotiates best transport: WebSockets -> Server-Sent Events -> Long Polling.
- Redis Backplane: In scaled environments with multiple web servers, Client A on Server 1 and Client B on Server 2 communicate via a Redis Pub/Sub backplane that distributes hub messages across all server instances.