1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
51 small wins to finish your pathNext question →
Explain shadow, canary, blue-green and A/B deployments for LLM changes. When do you use each?
30-second answerSay your answer out loud first, then reveal.

When to use each
| Strategy | User exposure | Best for | Cost / caveat |
|---|---|---|---|
| Shadow | None | Model swaps, big prompt rewrites, risky retrieval changes | Doubles inference cost for shadowed traffic; can't measure user reactions; avoid side-effecting tools in shadow |
| Canary | Small % | Most releases | Needs enough traffic for signal; automated analysis |
| Blue-green | All at once (switchable) | Infrastructure changes, inference-server upgrades | Duplicate infrastructure (expensive for GPUs) |
| A/B test | Split for weeks | Measuring business impact of prompt/model changes | Requires experiment design and statistical rigour |
LLM-specific note: shadowing agents is tricky because tools have side effects. Run shadows with read-only or mocked write tools.
Related
You understood something today that you didn't yesterday.