Chapter D · 4 of 4~10 min

Blue-green deploy lab

**Two full environments** — swap traffic in one move, revert if metrics break.

Reviewed July 2026 · interactive lab

Paths & resources for this lesson

1Try it yourself

Playground

Blue-green deploy desk

Two full environments — swap traffic atomically, revert fast if metrics break.

v2 passes smoke on idle (blue) env

2Read & reflect

Recap

#What you just did

You chose swap, hold, or revert across smoke test and post-swap monitoring.

Teach

#Pattern

green (live v1) ──router──> users
blue  (idle v2)  ── smoke + eval ──> swap ──> blue live
                      ↑ fail? hold on green

Pair with health checks and error-rate alerts before declaring swap safe.

Use it

#When you'd use this

  • Model or prompt version bumps with fast rollback need
  • Infra migrations where canary is too slow

Watch out

#Watch out

Blue-green doubles idle capacity cost. Database schema changes still need care.

Try next

#Try this next

Sketch: what signal triggers revert within 5 minutes of swap?

3Spark check

Continue learning · glossary & guides