Blue-green deployment is a software release technique that maintains two identical production environments, called blue and green. While one environment serves live traffic, the new version is deployed to the other, and traffic is then switched over. If the new version has problems, traffic can be routed back to the previous environment, making rollback fast and minimizing downtime.
The technique is widely used as part of continuous delivery practices and is often cited alongside feature flags and canary releases as a way to ship code changes to production safely. Unlike a canary release, which gradually exposes a new version to a subset of users, a blue-green deployment switches all traffic at once.