Interview Prep/Networking/Load Balancing, Proxies & nginx in Production

How do you perform a blue/green deployment at the load balancer level?

IntermediateProductionLoad Balancing, Proxies & nginx in Production
Answer

Two target groups (blue and green) behind one ALB listener. Deploy and validate green with a test listener or header-based rule, then switch the listener's default action to green (or shift weights). Keep blue running until you are sure, then roll back instantly by switching again.

Remember connection draining on blue and database compatibility between versions.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancing, Proxies & nginx in Production