You are asked to explain rolling, blue-green and canary to the product team and pick one for a payments API.
BeginnerScenarioDeployment Strategies and GitOps
Answer
Situation read → Choose a strategy by risk and cost.
What I'd do →
- Rolling: replace instances gradually; cheap, but old and new versions coexist.
- Blue-green: full parallel environment, instant switch and rollback; double capacity cost.
- Canary: shift 1% → 10% → 50% with metric checks; lowest blast radius.
- For payments I choose canary with automated analysis, falling back to blue-green if the DB change is incompatible.
Why → The cost of failure is high, so we want progressive exposure and fast rollback.
Interview tip → Mention backward-compatible DB changes as the real prerequisite for all three.