Azure / azure-signalr

Azure SignalR Service SDK for .NET
https://aka.ms/signalr-service
MIT License
427 stars 101 forks source link

Delay Server Connections until condition is met #1919

Open rabberbock opened 9 months ago

rabberbock commented 9 months ago

Question I am running an application on a k8s cluster. When the app starts up, I do some initialization that can take a few seconds and would like to prevent the Azure SignalR service from sending client connections until after that time.

Can I use InitialHubServerConnectionCount and MaxHubServerConnectionCount for this purpose and change them after startup? Or is there some other recommended way of doing this.

Thanks!

vicancy commented 9 months ago

Not for now.

Can I use InitialHubServerConnectionCount and MaxHubServerConnectionCount for this purpose

I am afraid not, they are not hot-reload supported.

Maybe we could add a delay start hook? Thoughts? @vwxyzh