Progressive delivery swaps a model or prompt without exposing all users at once. Blue-green runs two full environments and flips all traffic. Canary sends a small share to the new version and ramps up. Shadow mirrors live traffic to the new version without serving its responses.

Deployment patterns (blue-green, canary, shadow)Diagram with these labels, in reading order: Route Traffic; Monitor Quality; Mirror Traffic; Old Version; (Production); New Version; (Candidate); Traffic Split; (Blue-Green); Traffic Monitoring; (Canary); Shadow Traffic; (Validation).Route TrafficRoute TrafficMonitor QualityMirror TrafficOld Version(Production)New Version(Candidate)Traffic Split(Blue-Green)Traffic Monitoring(Canary)Shadow Traffic(Validation)
Deployment Patterns Overview

Three ways to expose a new model

Blue-green. One environment runs the current version and the other hosts the new one. When ready, you flip all traffic. The old version stays hot, so rollback is instant.

Canary. Route a small percentage, say 1%, to the new version and watch quality, error rate and cost. If those hold, ramp to 5%, 50% and then 100%. A drop triggers rollback, ideally automatically.

Shadow. Run the new version in parallel on mirrored traffic and log its outputs for offline comparison with production. Users never see them, so it is the safest way to validate a change against live inputs. You compare the new model with the old one on the same requests and confirm that quality improves before users see the new version.

Why LLM regressions need quality checks

Ordinary service rollouts watch latency and error rates. A language model can regress in answer quality while every request still succeeds, so a hard cutover that passes initial tests can hit 100% of users with a subtle decline. Users lose trust when answers quietly get worse. Limiting exposure keeps that blast radius small and lets you collect data on how the new model behaves on live traffic. Shadow mode goes further: you capture and analyze the new model's responses before anyone depends on them.

Subtle regressions LLM regressions often do not crash anything. Monitor output quality closely.

Choosing between the three

The table compares the patterns on capacity, speed of rollback and risk to users.

PatternPick it whenCost
ShadowYou want to validate a candidate on production inputs with no user riskExtra inference on mirrored traffic
CanaryYou want a gradual rollout watching live quality and costSome users see a regression before rollback
Blue-greenYou need an instant, clean rollbackCapacity for two full environments

Example scenario: latency complaints after a flip

Suppose that after a blue-green switch, 30% of users report higher latency. The new model may be slower on some input types, or may fail and retry more often on certain edge cases, which adds delay.

Deployment patterns (blue-green, canary, shadow)Diagram with these labels, in reading order: High Latency Reports; Check Traffic Routing; Check Resource Allocation; Check Model Performance; Fix Traffic Misrouting; Scale Up Resources; Optimize Model.High Latency ReportsCheck Traffic RoutingCheck Resource AllocationCheck Model PerformanceFix Traffic MisroutingScale Up ResourcesOptimize Model
Debugging deployment patterns
  • Read logs for error messages and stack traces from the new model.
  • Compare input features of requests sent to both versions.
  • Check that the new model's training data included representative samples.

Roll back to the previous model first, since the old environment is still hot. You lose the new improvements for a while. Watch error rates and user feedback before trying again.

Back to the knowledge baseRequest an assessment