☁️Blue-Green Deployment
Also known as Blue/Green Deployment, Blue Green Deploy, Red-Black Deployment
Run two full copies, then move all traffic from the old to the new.
Think of it like
Think of it like two stages side by side. You set up the next act on the dark stage, then switch the lights over.
Example
Lucy's shop runs on blue. She deploys version 3 to green, checks it, and flips the switch. A bug shows up, so she flips back to blue a minute later.
Why it matters
Going back is instant, since the old version never stopped. It is one of the safest ways to ship.
Definition
Common mistake
Key takeaways
- 1Two full copies. One live, one idle.
- 2Switch all at once. Every user moves together.
- 3Instant way back. The old copy still runs.