Blue-green web service deployment with WebSocket on AWS

I am currently looking to implement web sockets for several web services. But I wondered how these HTTP connection states will affect blue-green deployments and autoscaling on AWS.

Understood, but did not meet anything. I would be grateful for any recommendations / materials.

+6
source share
1 answer

Use a connection drain (sending all new requests to the desired environment - for example, green) and providing time for steaming blue clients.

You can set the maximum lifetime of your websocket (the drain time of the connection should be longer than the maximum, if such reliability is required)

Otherwise, the client side will simply be processed. If websocket frames initiate a new connection through your AWS ELB to a healthy server. Do not save state on your ELB ephemeral backends. This will also work when decreasing AWS.

+2
source

All Articles