Real-time .NET/.NET Core SignalR applications usually have a high frequency of updates from the web server to clients. Examples of such apps include gaming, social networks, dashboard monitoring apps, and many others. For high traffic ASP.NET / ASP.NET Core applications, SignalR must scale to a multi-server environment. In such environments, SignalR needs to distribute messages across multiple web servers. And, for this, SignalR benefits from NCache Backplane.
NCache is an extremely fast and scalable in-memory distributed cache and has implemented an ASP.NET / ASP.NET Core SignalR Backplane for high traffic real-time web applications running in load-balanced multi-server web farms. Moreover, NCache has very powerful Pub/Sub messaging features through which SignalR can send messages from one web server to another.
You can configure your ASP.NET/ ASP.NET Core application to use NCache as your SignalR Backplane that is extremely scalable. Using NCache as your SignalR Backplane is very straight forward. Here is what you do in your ASP.NET Core application.
public void ConfigureServices(IServiceCollection services)
{
services.Configure<NCacheConfiguration>(Configuration.GetSection("NCacheConfiguration"));
services.AddSignalR().AddNCache(ncacheOptions =>
{
ncacheOptions.CacheName = Configuration["NCacheConfiguration:CacheName"];
ncacheOptions.ApplicationID = Configuration["NCacheConfiguration:ApplicationID"];
});
}
If your ASP.NET / ASP.NET Core application is high traffic and running in a load-balanced multi-server web farm, then you need to use NCache as your SignalR Backplane. This is because NCache is the most powerful .NET Distributed Cache available that provides you the following benefits:
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.