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

  1. Choose a health check that detects meaningful serving failures without making every dependency outage cascade.
  2. 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.

  1. List shared dependencies that did not gain capacity.
  2. Choose a metric for request latency and a metric for the suspected bottleneck.
  3. Describe a safe instance replacement with connection draining.

Check your understanding

What does adding more web instances fail to guarantee?

Continue with AWS documentation

Before following a deployment guide, review current pricing, permissions, and cleanup steps. Budget alerts are not a hard spending cap.

Saved in this browser. Press again to undo.

Prepaid · USD

Top up balance

Available balance: $0.00

Your balance works across Heap tools. A failed lookup or generation releases its reserved amount.