SignalR: WebSockets reconnect to scaled server. #23142
-
There are docs at https://docs.microsoft.com/ru-ru/aspnet/core/signalr/scale?view=aspnetcore-3.1#redis-backplane describing requirements for sticky sessions, particularly this paragraph:
Could you please elaborate how websocket reconnection is supposed to happen in that case? I mean, if I unplug network cable and plug back over time, how would websocket reconnect to the very same server from which it disconnected later if no sticky sessions are configured? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Reconnection spins up a new connection And connection id to potentially another server (depending on how the affinity was done) . There are no guarantees that you will hit the same server. |
Beta Was this translation helpful? Give feedback.
-
Thanks! So in fact one always needs some kind of ARR configured for reconnection. I think it would be very helpful if mentioned in docs. |
Beta Was this translation helpful? Give feedback.
Reconnection spins up a new connection And connection id to potentially another server (depending on how the affinity was done) . There are no guarantees that you will hit the same server.