Interview Prep/AWS/EC2, Auto Scaling and Load Balancing

What is deregistration delay?

IntermediateConceptEC2, Auto Scaling and Load Balancing
Answer

When a target is deregistered or goes unhealthy-draining, the load balancer stops sending new requests but lets in-flight requests finish for the deregistration delay (default 300 seconds, range 0–3600). After it expires, remaining connections are closed.

Set it to match your longest request (for example 30 seconds for an API) to speed up deployments. The app must also handle SIGTERM and keep serving until draining finishes.

aws All AWS questions Roadmap: AWS core services

More on EC2, Auto Scaling and Load Balancing