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

Stop Blazor SignalR from sending requests to Azure SignalR #1738

Open
robinqueen opened this issue Dec 2, 2022 · 2 comments
Open

Stop Blazor SignalR from sending requests to Azure SignalR #1738

robinqueen opened this issue Dec 2, 2022 · 2 comments

Comments

@robinqueen
Copy link

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

I am trying to run a Blazor web app with Azure SignalR and I noticed the connected clients is quite large when theres minimal traffic. I notice there is a basehub connection, as well as a componenthub connection. To my understanding the componenthub is the Blazor SignalR instance.

image

Describe the solution you'd like

Is there a way to separate or filter these requests, so in this case the blazor component hub requests would stay in blazor signalr, and in this case, if basehub were say decorated with an attribute of [UseAzureSignalR] it would proxy it via azure?

What I am asking could very well exist or entirely not be possible also - just wasn't sure of the feasibility of this feature.

@robinqueen robinqueen changed the title Allow Separation of Blazor SignalR Requests being sent to AzureSignalR Stop Blazor SignalR from sending requests to Azure SignalR Dec 2, 2022
@vicancy
Copy link
Member

vicancy commented Dec 16, 2022

It is currently not supported. Under the hood, Azure SignalR replaces the entire HubLifetimeManager so it seems hard to serve different settings. One idea to workaround the issue is to use 2 separate servers, one for blazor app and one for the normal hub.

@robinqueen
Copy link
Author

Thanks @vicancy We will review the pricing of azure signalr and determine if this approach would be feasible once we hit that cost cutoff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants