Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swapping Azure Staging/Production environments with a SignalR Hub

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

My question is if I swap the two deployment slots while there are existing connections to the service on Production:

What will happen to those existing connections? Will they still be connected to the now-Staging slot, or will they reconnect to the the now-Production slot? Or something else? Is this client-dependent?

Thanks!

like image 717
Jonathan Rauch Avatar asked Jun 10 '13 11:06

Jonathan Rauch


People also ask

How many connections can SignalR handle?

In the default mode, the app server creates five server connections with Azure SignalR Service. The app server uses the Azure SignalR Service SDK by default. In the following performance test results, server connections are increased to 15 (or more for broadcasting and sending a message to a big group).


1 Answers

It's going to depend on how you're storing SignalR connection information.

If you're using a permanent external storage solution (see this post), then swapping from one web server to another, which is what the VIP swap will end up doing, shouldn't interrupt the connections.

If you're using a different approach for storing the connection info like in-memory, then it's going to be lost b/c you're going to be transferring client traffic from one web server to another with the deployment swap.

like image 75
Mark Berryman Avatar answered Oct 10 '22 18:10

Mark Berryman