advanced 5h

Blue-Green Deployment

Zero-downtime releases with automated rollback.

0%

0 of 6 steps

What you will end up with

Two parallel environments

Instant traffic switching

One-click rollback

Build steps

0/6

Duplicate your app’s infrastructure into two identical stacks, only one of them serving live traffic at a time. Picture two identical stage sets, with only one lit up at any moment.

Point a load balancer at whichever environment is currently live, with the other one sitting on standby. The load balancer is the spotlight operator, aiming the beam at one stage.

Ship the new release only to the dark environment, leaving the live one untouched and still serving users. Nobody in the audience even knows a new set is being built backstage.

Hit green’s health checks and a few core endpoints directly, bypassing the load balancer, before it ever sees real traffic. This is the dress rehearsal before the curtain opens.

Flip the load balancer’s target from blue to green, ideally with one config change or DNS update. A single switch flip changes which stage the spotlight lands on.

Watch error rates after the switch and have a script flip the load balancer back to blue automatically if they spike. If the new set collapses, the spotlight snaps back to the old one instantly.

Before you start

Deployment strategiesLoad balancing