ASP.NET SignalR Backplane Overview
SignalR allows developers to create real-time ASP.NET web applications, where the server broadcasts the updates to all registered clients as soon as an update is triggered. This reduces the delay caused by the client's requests for updates.
Note
For production use, it is recommended to run the NCache backplane in the same data center as the SignalR application.
A simple example of SignalR implementation is an online chatroom. Multiple clients are connected to multiple web servers in a farm. These clients send messages to each other, where the message content is displayed as soon as it is sent to the receiving client. This eliminates the need to refresh the webpage every time to request new messages, as the server broadcasts the messages to all clients as soon as the client state is updated.
NCache offers support for SignalR by providing an extension to the SignalR provider. All concerned web servers for the application are registered against the provider. Meanwhile, the clients are connected to their respective web servers. In NCache, as soon as a client registers itself against the web server, two key features of NCache come into play:
Custom Events: The provider fires an event as soon as a client operates. This event triggers all web servers to immediately update their clients according to the latest state, thereby cutting down on the waiting duration for a client to check on updates.
CacheItem.Version: As soon as a client is registered against a web server, an item is added to NCache with a user-specified event key. Every time the client operates, the version of the cache item is updated, triggering an event registered against the provider. This allows for instant replication of the client state across all connected clients, which causes the real-time effect.
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.