What is the difference between a shadow deployment and a canary rollout when releasing a new ML model?
ML systems and evaluation, Deployment
Level L1 Beginner. Length Short. Nature Th Theoretical.
What's being asked
Whether you know how staged deployment patterns reduce production risk before full traffic cutover.
Key idea
In a shadow deployment, the new model scores live requests in the background without users seeing its outputs; in a canary rollout, a small percentage of live users actually receive the new model’s predictions.
Steps
- Define shadow deployment: live traffic is mirrored to the candidate model asynchronously, and its predictions and latencies are logged for comparison against the production model while users still see only the old model.
- Define canary rollout: a small slice of real traffic (such as 1–5%) is routed to the new model, monitoring error rates, latency and business guardrails before ramping up.
- Contrast what each catches: shadow deployment safely detects crashes, latency spikes and training–serving skew with zero user impact, whereas a canary rollout tests true user behaviour and downstream feedback.
Common mistakes
- Thinking shadow deployment can measure online business lift; because users never see the shadow predictions, you cannot measure changes in clicks or conversions.
- Treating a small canary rollout as a statistically powered A/B test; canaries are primarily for safety checks, not subtle effect-size estimation.
How long your answer should be
3–4 sentences.
Last checked on 4 December 2026.
Read this
Previous in ML systems and evaluation: What is a confounding variable, and how does randomising treatment assignment in an experiment remove confounding bias?
Next in ML systems and evaluation: What is the difference between interpretability and explainability in machine learning, and what risks arise when relying on post-hoc explanations?