Blue-green deployment
Blue-green deployment is probably the most commonly sited approach to zero-downtime deployment. The general idea is to maintain two identical infrastructure environments named blue and green. At any given point in time only one environment is live. In the following diagram, Blue is the live environment. A new version is deployed to the Green environment and smoke tested via a private endpoint. When the new deployment is deemed ready then the Green environment is made live by switching all traffic from Blue to Green. If anything goes wrong, then the traffic can be routed back to the blue environment. Otherwise, the Blue deployment is retired and the next deployment will start in the Blue.
Ironically, this approach works ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access