IT lexicon › Infra & Ops › Shadow traffic

Shadow traffic

Infra & Ops På svenska → Updated: 2026-11-14

Sending a copy of production traffic to new code without letting the results affect user responses.

A safe way to test code at production scale without risking user experience. You take incoming requests, duplicate them, and send copies to your experimental code while running the original for actual responses. The experimental version logs its latency and errors but never affects what users see. It's A/B testing without actually changing behavior for anyone.

Shadow traffic reveals real traffic patterns: which endpoints are hit, payload sizes. A canary deployment (routing 5% of real requests to new code) is riskier but more realistic. Shadow traffic is free from the user's perspective but doubles load on the experimental service, so it needs planning.

← Back to the lexicon