Switch between Azure creation and production with SignalR

I have a SignalR service running on Azure Web Role. I am interested in deploying a new version of the service, first in Staging, and then in the Production Production slot.

My question is that I swapped two deployment slots while there are existing connections to the service in Production:

What will happen to these existing compounds? Will they still be connected to the Now-Staging slot, or will they reconnect to the Now-Production slot? Or something different? Is it customer dependent?

Thanks!

+6
source share
1 answer

It depends on how you store the SignalR connection information.

If you use persistent external storage (see this post ), then switch from one web server to another, which is a VIP exchange in the end should not interrupt connections.

If you use a different approach for storing connection information, for example, in memory, then this will be lost. b / c you are going to transfer client traffic from one web server to another using swap deployment.

+1
source

Source: https://habr.com/ru/post/946944/


All Articles