Skill 2.3.3

Implement progressive rollout and safe rollback strategies

Key Concepts

In a blue-green deployment, the endpoint keeps the current deployment, blue, and adds a new one, green. Green is tested directly, then receives a small share of live traffic, such as 10 percent, through the endpoint's traffic setting, which must add up to 100 percent. If latency, errors and business metrics stay healthy, the share grows until green takes all traffic and blue is deleted.

Mirrored traffic sends a copy of a percentage of live requests, up to 50 percent, to a deployment whose responses are discarded, which tests a model on real inputs with no effect on users. Rollback is a traffic change back to blue, which is instant as long as blue still exists, so the old deployment should be kept until the new one is proven.