Back

Explore Courses Blog Tutorials Interview Questions
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 (119k 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.

Related questions

0 votes
1 answer

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
2 answers
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94k users

Browse Categories

...