ASP.NET SignalR Backplane Overview
SignalR is a powerful framework for developing real-time ASP.NET applications. It enables servers to push updates to all registered clients as soon as an event occurs, eliminating the need for clients to repeatedly request new data.
Note
For best performance in production, the NCache backplane should be deployed within the same data center as the SignalR application.
A practical example of SignalR in action is an online chatroom. Multiple clients connect to different web servers in a farm, and when one client sends a message, it is instantly displayed to the recipient without requiring a page refresh. This is because the server automatically broadcasts the update to all connected clients.
NCache extends SignalR by offering a specialized provider that synchronizes real-time communication across all web servers. As part of this integration, NCache leverages two key features:
Custom Events: Whenever a client interacts with the system, an event is triggered. This ensures that all web servers immediately update their connected clients with the latest state, eliminating unnecessary polling.
CacheItem.Version: When a client registers with a web server, an associated cache item is created in NCache with a specific event key. Each time the client updates its state, the cache item version is modified, triggering a corresponding event. This mechanism enables real-time synchronization across all connected clients.
By leveraging these capabilities, NCache ensures high availability, instant updates, and seamless real-time communication in SignalR applications.
In This Section
NCache Extension for ASP.NET SignalR Backplane
Explains how NCache's extended method can be used to utilize SignalR in your ASP.NET applications.