Sub topic 14
Choosing and Combining Model Rollout Strategies
Assume you can serve multiple model versions behind an HTTP or RPC endpoint, route requests using an identity such as a user ID, and collect latency, errors, model outputs, and eventual labels. You should also understand basic proportions and averages. The goal is not to choose one rollout method forever. The goal is to remove the right risk at each stage.
Match the strategy to the question
Each strategy answers a different production question:
| Strategy | Who receives the candidate output? | Main question |
|---|---|---|
| Shadow | No users | Does it run correctly on realistic traffic? |
| Canary | A small, selected share of users | Is it safe under limited user exposure? |
| A/B test | Randomized control and treatment groups | Does it improve the target business outcome? |
A shadow deployment sends a copy of a live request to the candidate. The stable model still produces the user-visible response. Compare latency, errors, resource use, and paired predictions, but do not treat shadow results as proof of business improvement.
A canary gives the candidate real responsibility for a small traffic share. Increase that share in stages only when system and model guardrails remain acceptable. Canary testing is useful when a bad model could harm users, even before enough delayed labels exist for an A/B test.
An A/B test assigns users to stable or candidate groups and compares an outcome such as conversion, fraud loss, or successful resolution. It needs sticky assignment and enough observations. It answers a causal business question, but it cannot replace operational safety checks.
Combine strategies as a funnel
A practical sequence is shadow, canary, then A/B testing:
This order limits exposure while increasing the strength of evidence. Offline evaluation checks known data. Shadow testing checks live request shapes and serving behavior. Canary testing checks real user impact at limited scale. A/B testing checks whether the change improves the chosen business outcome.
You can skip a stage when its question does not apply, but document the reason. For example, a latency-only optimization may need shadow and canary checks but no long business experiment. A model that changes ranking or pricing usually needs an A/B test.
Decision criteria and failure modes
Choose a conservative path when the model affects safety, money, eligibility, or legal decisions. Use a larger initial shadow period and a smaller canary. Define automatic rollback thresholds before exposing users.
Do not combine results carelessly. A candidate can pass a canary while failing the A/B test because it is reliable but does not improve business value. It can also improve conversion while increasing complaints or latency. Promotion requires both outcome evidence and guardrail compliance.
Keep the assignment method consistent. Changing the traffic split, user population, or eligibility rules during an experiment can make groups incomparable. Record model version, routing rule, time window, and metric definitions with every result.
Exercise
A candidate is faster than the stable model but has no mature labels yet. Which sequence should you use?
Show answer
Run shadow testing to verify serving behavior, then a guarded canary to measure real user impact. Start an A/B test when the relevant outcome labels become available.