Traffic Mirroring

For analysis.

What traffic mirroring is

Traffic mirroring duplicates production requests to a parallel system without affecting the production path. Real traffic with no risk to the user; the mirror analyses or tests the duplicate while the original response goes back to the user normally.

AWS Traffic Mirroring

AWS Traffic Mirroring is the packet-layer option. Sources from an ENI, sends to an NLB or inspection fleet, controls cost via sampling. Useful when full-packet visibility is required.

Application-level mirroring

Application-level mirroring processes requests rather than packets. Service mesh, Envoy proxy, and framework-level options give richer signal at the cost of higher coupling to the application stack.

Common use cases

Use cases drive the architecture choice. Load testing, security inspection, and ML evaluation each fit a different mirroring pattern.

Limits and gotchas

The limits are real. PII exposure, stateful-write risks, and cost at scale all need explicit handling; mirroring without thinking about them is how compliance incidents start.