0 votes
1 view
in AWS by (1.1k points)
edited by
I want to implement Web sockets for a couple of Web services.
How will the stateful HTTP connections impact Blue-green deployments and auto-scaling on AWS?
I couldn't find anything useful on google. Please help.

1 Answer

0 votes
by (116k points)
edited by

Use connection draining (sending all new requests to your desired environment) and giving time for blue clients to fall off.

You can set the max-lifetime of your WebSocket (connection draining period has to be longer than max if that kind of reliability is required)

Otherwise would just handle the client-side. If WebSocket drops initiate a new connection through your AWS ELB to a healthy server. Do not keep any state on your ephemeral ELB backends. This will also work when scaling down on AWS.

If you want to learn more, check out this AWS Certification Course by Intellipaat.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !