IT lexicon › Infra & Ops › Traffic splitting

Traffic splitting

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

Technique for routing different portions of user traffic to different server versions or environments.

Traffic splitting is the foundation for canary deployments, A/B tests, and shadow traffic. It can be implemented at many layers: load balancer, service mesh, reverse proxy, or application code. Distribution can be controlled by user ID, geography, user attributes, or simple percentage split. Classic tools include HAProxy, nginx, and modern cloud infrastructure like Cloud Run or AWS ALB; service meshes like Istio offer even finer control.

The hard part isn't splitting the traffic—it's doing it without breaking sticky sessions, cookie handling, or other state details. A request routed to version A shouldn't later jump to version B within the same session.

← Back to the lexicon