DELAPARRA
Index
Color
NL
Category: Core glossary

Blue-green deployment

Explained by Updated

What is Blue-green deployment?

Blue-green deployment: A release strategy using two identical environments ("blue" and "green"). Traffic is switched to the new version (green) while the old version (blue) remains on standby for instant rollback. Blue-green deployment uses two identical environments. Blue runs the current version and serves users. Green gets the new version. After testing green, you switch traffic over in one step.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Blue-green deployment

How is Blue-green deployment used in practice?

The main advantage is a fast rollback. If something is wrong, you switch traffic back to blue, which is still running the old version. There is no rebuild and no waiting.

What should you keep in mind with Blue-green deployment?

The tricky part is the database. Both versions must work with the same data during the switch, so schema changes need to be backward compatible. Add new columns first, deploy code that uses them, and remove old columns in a later release. The approach also needs double the capacity for a short time. For many smaller applications, a rolling update in Kubernetes gives most of the benefit with less overhead.

At a glance

CategoryCore glossary
Explained by
Updated

More Core glossary terms

All terms starting with B

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.