Model Deployment Strategies
Blue/green, canary, shadow, A/B, and feature flag strategies for safely promoting ML models to production.
Overview
Why deployment strategy matters for ML
Shipping a new model is riskier than shipping new code. Code is deterministic for the same inputs; a new model can return different outputs for the exact same request, in ways offline metrics do not predict. The deployment strategy controls the blast radius: how fast a bad model reaches users and how fast it can be pulled back.
Most rollouts follow the same path. A new model version first runs in shadow mode, where it has zero user impact. Then you decide how to expose users to it, and there are four common answers: a blue/green atomic switch, a canary with gated percentages, feature flags for targeted cohorts, or a bandit that adapts traffic as it learns. Whichever you pick, a breached trigger sends the rollout back. The sections below take each strategy in turn and answer the same four questions: who sees the new model, how you undo it, what it is best for and what it costs.
Interview questions
- Design a complete canary rollout procedure for a new ranking model at a large e-commerce platform.
- Compare feature flags and canary deployments as model rollout strategies. When would you choose each?
- How do you implement automated rollback for a production ML model and what signals drive it?
Sign up free to read the full topic
More MLOps & LLMOps topics
- ML Monitoring and Alerting
- ML Pipeline Orchestration
- ML Security and Adversarial Robustness
- ML Testing Infrastructure
- MLOps CI/CD Automation
- MLOps Lifecycle
- Model Drift Detection
- Model Evaluation — Offline and Online
- Model Packaging and Formats
- Model Registry
- Model Serving
- Model Supply Chain: Signing, Provenance & Safe Formats
Start free on Cariara · Coding problems · System design studio