question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for configuring multiple SignalR service instances

See original GitHub issue

This solves a couple of problems:

  • Ability to increase the scale by adding more Azure SignalR instances and distribute messages across those instances
  • Ability to support multi-region fan out

There are 2 major pieces to this:

  • Supporting multiple connection strings
  • Selecting a single connection string on negotiate based on the incoming request (user extensible)

The negotiate payload will by default round robin and select a single end point that the client will connect to. Instead of opening N connections to a single service instance, we’ll be opening N connections to M service instances. Each outgoing message should be sent to a single connection on each service instance (see https://github.com/Azure/azure-signalr/blob/25bcc7bd4b3fcd7209578d8138ff053e88490276/src/Microsoft.Azure.SignalR/HubHost/ServiceConnectionManager.cs#L30)

A couple of services need to be tweaked to no longer assume a single connection string (like IServiceEndpointProvider) and we need to change the IServiceConnectionManager implementation to fan out to all servers.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
robynt34commented, Jan 11, 2019

Is there an update on this feature?

0reactions
vicancycommented, Aug 24, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Scale SignalR Service with multiple instances - Azure
SignalR Service SDK supports multiple endpoints for SignalR Service instances. You can use this feature to scale the concurrent connections, ...
Read more >
Microsoft signalR is not working with multiple instances #11117
Hi, We are using microsoft signalR service for real time communication, but the service wont work if we scale out the app service...
Read more >
Azure SignalR Service with multiple ASP.NET Core App ...
Lets assume I am using Azure SignalR Service connected to two App Services (ASP.NET CORE) obviously running the same instance of my ...
Read more >
Azure WebJobs SignalR Service client library for .NET
Use multiple Azure SignalR Service instances for resiliency and disaster recovery in Azure Functions. See details in Multiple Azure SignalR Service Instances ......
Read more >
SignalR deep dive: Key concepts, use cases, and limitations
You can configure SignalR to support different service modes: Default, Serverless, and Classic. Note that the service mode is a concept ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found