Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M6243

Shadow Testing

Shadow Testing
BusinessHigh supportManagement
Included
account_tree

Updated 2026-08-10

Loading revision record…

Summary

Shadow testing runs a copy of real production traffic through a new version, which processes it without returning any results to users.

Definition

Shadow testing duplicates live production traffic and routes it into the new version of a system in parallel with the existing one. The shadow system executes its logic but its responses are discarded, so users are unaffected while the new version is exercised against real data and real load. Differences between the two systems are compared before any traffic is switched, which makes it a low-risk way to validate a replacement under conditions a test environment cannot reproduce.

How to use

- Rehearse in parallel: run the new approach alongside the current one without letting it take effect. - Compare outputs: check where the two diverge on real inputs before switching anything over. - Build experience cheaply: simulate decisions in advance and compare them with what actually happened.

Mechanism

A test environment approximates production, so it misses the data distributions, load patterns and edge cases that only real traffic contains. Replaying live traffic through the new system exercises exactly those conditions while the shadow's output is ignored, so any failure has no user impact. Divergence between the two systems becomes the evidence for whether the replacement is ready.

Practice

In progress 0/1

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

Cases

  • Recommendation systems are often validated by shadowing a new ranking model against live traffic before launch.
  • Risk and fraud models are compared in shadow mode before replacing a production scoring model.

Common pitfalls

  • Letting dirty or unrepresentative shadow data contaminate the comparison, so divergences reflect the test setup.
  • Ignoring the infrastructure cost of duplicating traffic and running two systems at once.
Sources

Source support: Explicit

  • link
    istio.iohttps://istio.io/latest/docs/tasks/traffic-management/mirroring/ZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS