in Education 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. Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
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
    I want to migrate my webapp from Amazon EC2 to ECS. I ECS I have to allocate memory and vCPU for the ... needed for the process? Select the correct answer from above options...
asked Jan 25, 2022 in Education by JackTerrance
0 votes
    If I have to build an infrastructure stack in the cloud using a tool like Ansible. Is it necessary to have the ... the best to use? Select the correct answer from above options...
asked Jan 25, 2022 in Education by JackTerrance
0 votes
    When I want to launch some code serverless, I use AWS Lambda. However, this time my deployment package ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 9, 2022 in Education by JackTerrance
0 votes
    I tried this: pip3 install --user --upgrade awscli pip3 --version I'm getting: pip 9.0.1 from /downloads/ ... not found. Please help. Select the correct answer from above options...
asked Jan 24, 2022 in Education by JackTerrance
0 votes
    I tried to follow this tutorial. This is what I did in the console: pip3 install --user --upgrade awscli after ... 's the problem here? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I've got a flow where I want a codepipeline to trigger on git commits on Github, go via some ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    I installed Ubuntu 12.04 on my instance and am trying to install packages using apt-get, but I am getting the ... do I fix this? Select the correct answer from above options...
asked Feb 4, 2022 in Education by JackTerrance
0 votes
    SSH for my AWS server is not working for Filezilla and Putty. Error: Disconnected : No supported authentication ... /authorized_keys - Select the correct answer from above options...
asked Jan 24, 2022 in Education by JackTerrance
0 votes
    How to rename the AWS Lambda function which I had created for testing purpose? Select the correct answer from above options...
asked Jan 24, 2022 in Education by JackTerrance
0 votes
    Can someone differentiate between EC2 and Elastic Beanstalk? Select the correct answer from above options...
asked Jan 24, 2022 in Education by JackTerrance
0 votes
    Hello I am trying to upload some files to the amazon S3 bucket but I am facing an error that the key is ... 't exist Please help. Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    Is it possible to get the ARN of an S3 bucket via the AWS command line? I have looked through the documentation ... way to do this. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I'm having trouble using * in the AWS CLI to select a subset of files from a certain bucket. Adding * to the ... s3://data/2016-08*. Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    Can you help me out with this program? I am unable to run this code. varx http = require('http'); exports.handler ... + eventa.url); } Select the correct answer from above options...
asked Jan 24, 2022 in Education by JackTerrance
0 votes
    I would like to use API Gateway to pass through binary payloads from a local Express.js server that sends ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 22, 2022 in Education by JackTerrance
...