Problems with ASP. NET SignalR Cluster

Source: Internet
Author: User

Original: ASP. NET SignalR cluster problems encountered

SIGNALR Cluster

When the number of clients comes up, a server is naturally unbearable. Multiple server cluster deployments are a must-have solution. And then by load balancing, well, it's perfect. But the problems are coming. Each server can only be managed to the client under the current server, such as Server1 to send a message to the client that is connected to server2.

At this time we need "backplane" middleware, what is called the backplane, that is, in the server cluster and add a layer, by the backplane to maintain these servers, like the above Server1 to connect to the Server2 client sent messages, the backplane will tell Server2 to send a message to the client. It's going to be the effect we need.

Redis and SQL Server are commonly used, in fact redis performance is optimal.

SQL Server to do the Backplane

Need to download NuGet package Microsoft.AspNet.SignalR.SqlServer

It is also very simple to configure in the startup class, and the database is SIGNALR. Run the program and we'll get the following tables

Redis to make the Backplane

Need to download NuGet package Microsoft.AspNet.SignalR.Redis

Also configured in the Startup class,

GlobalHost.DependencyResolver.UseRedis ("localhost"6379string"  SignalR");

Problems with ASP. NET SignalR Cluster

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.