Interactive 3D/Shadow Mode and Canary Deployment Testing
Traffic Flow (Shadow Mode)
Incoming
Requests
0 total
→
PRODUCTION MODEL
100% of traffic
Response → User ✓
LIVE
SHADOW MODEL
100% of traffic
Response → Logged only
SHADOW
Users ONLY see production responses - shadow runs silently in parallel
Prod Accuracy
-%
Shadow Accuracy
-%
Disagreements
0%
Prod latency
0ms
Shadow latency
0ms
Live Comparison (last 10 requests)
Input (truncated)
Prod
Shadow
Truth
Match?
Δms
Shadow Controls
Deployment Mode
Disagreement Rate
Rate20%
0%60%
Simulates how often new model disagrees with production
Shadow mode is zero-risk - users always see the production response. The new model runs in parallel, logging outputs for analysis.
Canary mode exposes a small % of users to the new model. Riskier but gives real user feedback.
High disagreement rates are a red flag - investigate before promotion.
Shadow Mode and Canary Deployment Testing - Interactive Visualization
Shadow testing is the safest way to validate a new ML model before fully deploying it. All production requests are duplicated and sent to the shadow model in parallel. Users only see production responses - the shadow model's outputs are logged for comparison but never returned. This lets engineers measure prediction disagreement rate, latency overhead, and accuracy against ground truth before any user is affected. Canary deployment is the next step: route a small percentage (typically 5%) of live traffic to the new model and watch real metrics before full rollout. A disagreement rate above 15-20% is a serious signal that the new model behaves differently in unexpected ways.
Shadow mode: zero user impact - all traffic goes to production; shadow runs silently for analysis only
Disagreement rate: the % of requests where production and shadow give different predictions - key health metric
Latency overhead: shadow inference adds compute cost but should not increase user-visible latency (async execution)
Canary deployment: start at 5% traffic, monitor error rate and latency, gradually increase to 50% then 100%
Ground truth comparison: shadow logs let you compare both models against delayed ground truth labels
Promotion criteria: shadow disagreement rate below 10%, latency overhead below 20ms, accuracy same or better
Part of the EngineersOfAI Interactive 3D - free interactive visualizations covering every major concept in machine learning and AI engineering. Hover any element for a plain-English explanation. No code required.