Interview Prep/Networking/Load Balancing, Proxies & CDN

How do you do blue/green with weighted target groups on an ALB?

IntermediateScenarioLoad Balancing, Proxies & CDN
Answer

Situation read → Weighted forwarding lets you shift traffic gradually without DNS changes.

What I'd do →

  1. Create two target groups, blue and green
  2. Set a listener rule action forwarding with weights blue=100 green=0
  3. Deploy green, test it through a header-based rule
  4. Shift 10, 50, 100 percent while watching 5xx and latency
  5. Roll back by setting the weights back, which is instant

Why → Weights are enforced per request, so shifts take effect immediately, unlike DNS.

Interview tip → Mention CodeDeploy or Argo Rollouts can automate these steps.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancing, Proxies & CDN