What is the key property that distinguishes shadow deployment from a standard A/B test for LLMs?
Shadow deployment mirrors real traffic to the challenger but serves only the incumbent's response. Users see zero challenger output, so it gives real-traffic evaluation at zero user risk.
Imagine a trainee chef shadowing the head chef. Every order that comes in, both of them cook it. But only the head chef's plate goes out to the customer. The trainee's plate is set aside so the kitchen manager can taste it later and compare. The customer never eats anything risky, yet you still learn how the trainee performs on real orders, not on a practice menu. The catch: you are now cooking every dish twice, so you burn through twice the ingredients and gas. And because nobody ever eats the trainee's food, you never find out whether real customers would have liked it.
Detailed answer & concept explanation~8 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 min: shadow's defining zero-exposure property, what real-traffic mirroring uniquely buys, the no user signal and double-cost limits, and the shadow then canary then A/B promotion chain.
| Property | Shadow | Canary | A/B test |
|---|---|---|---|
| Challenger served to users | Never | Small slice | Treatment split |
| User exposure risk | Zero | Limited blast radius | Full on treatment arm |
| Real-traffic distribution | Yes | Yes | Yes |
| User-feedback signal collected | No | Partial | Yes, the deciding metric |
| Inference cost | Doubled, runs both models | Near baseline | Near baseline |
| Typical role in rollout | First de-risk gate | Early limited rollout | Final promotion decision |
Real products, models, and research that use this idea.
- LangSmith and Langfuse support logging a challenger's response alongside the served incumbent for offline shadow comparison on production traffic.
- Anthropic and OpenAI internal eval stacks mirror live prompts to candidate model versions before any user-facing rollout.
- Netflix popularized shadow traffic (dark launch) for backend services, the same pattern now applied to LLM challenger models.
- Promptfoo and Braintrust let teams replay captured production traffic against a new prompt or model as an offline shadow eval.
- Feature-flag platforms like LaunchDarkly gate the shadow then canary then A/B progression for LLM model swaps in 2026 stacks.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you safely shadow a challenger that calls tools or writes to a database?
QWhat metrics can shadow deployment measure, and which require a canary instead?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating shadow deployment as a full substitute for A/B testing. Shadow never serves the challenger, so it can never collect real user feedback signals like clicks, thumbs, or retention.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.