Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select the protocol to be used by Signalr #55210

Open
1 task done
n2029-ndensan opened this issue Apr 18, 2024 · 2 comments
Open
1 task done

Select the protocol to be used by Signalr #55210

n2029-ndensan opened this issue Apr 18, 2024 · 2 comments
Labels
area-signalr Includes: SignalR clients and servers

Comments

@n2029-ndensan
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

Connecting clients fail when scaling in during autoscaling.

Describe the solution you'd like

We want to be able to select the protocol to be used by Signalr, and by selecting long polling, we want to be able to scale in when autoscaling. Connecting users without errors.

Additional context

We plan to use Blazor Server. One of the challenges is that it is difficult to scale in.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-signalr Includes: SignalR clients and servers label Apr 18, 2024
@BrennanConroy
Copy link
Member

Connecting clients fail when scaling in during autoscaling.

So when reducing machines you get connection failures, presumably because the client(s) were connected to the machines that are no longer provisioned? That's not really something SignalR can do anything about.

by selecting long polling, we want to be able to scale in when autoscaling

I don't see the relationship here. Why is long polling important to autoscaling?

@n2029-ndensan
Copy link
Author

If it is not a problem with the protocol, is there a problem with the implementation of SignalR on the application side? The state is maintained in memory on the server side. If it is retained, it cannot be stored in external resources such as DB or Redis.If the state is retained in server memory and it takes time to change the SignalR implementation, is it possible to monitor whether SignalR is connected? With AzureMonitor etc.If connection monitoring is possible, I think it would be possible to temporarily disconnect SignalR with SSR and scale in when there is no SignalR connection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-signalr Includes: SignalR clients and servers
Projects
None yet
Development

No branches or pull requests

2 participants