The mental model
A load balancer routes traffic to registered targets and uses health checks to avoid targets that fail its configured test. Auto Scaling adjusts a group’s capacity using a policy. These are separate jobs: adding instances does not fix a database bottleneck, and a shallow health check may say a process is healthy while its requests fail.
Stateless application instances are easier to replace. Put durable state in an appropriate shared store, allow connections to drain during replacement, and leave enough headroom for failures. Scaling signals should reflect demand or saturation. A metric that stays low while requests queue may scale too late to protect the user experience.
Decisions to make
- Choose a health check that detects meaningful serving failures without making every dependency outage cascade.
- Test scale-in and replacement as well as the more obvious scale-out path.
Design exercise · no AWS resources needed
Work through a scenario
A web app gets slower even after its instance count doubles.
- List shared dependencies that did not gain capacity.
- Choose a metric for request latency and a metric for the suspected bottleneck.
- Describe a safe instance replacement with connection draining.
Check your understanding
What does adding more web instances fail to guarantee?
Choose an answer to see the reasoning.
Continue with AWS documentation
Before following a deployment guide, review current pricing, permissions, and cleanup steps. Budget alerts are not a hard spending cap.