03/Flow Routing

Weighted & Canary

Splitting traffic by percentages: load spreading and A/B tests.


The weighted router picks outgoing edges randomly by weight (load spreading). The canary router does the same weighted split but tags each request's "arm" in the trace — so you can compare arms (A/B testing) and roll a new model out gradually.

90%10%
Entry
routerCanaryA/B split
Currentweight 90
New (canary)weight 10
Canary: 90% current / 10% new
Compare the arms' outcomes (latency, error rate) from the traces in the "Routing" tab; if the canary performs well, raise its percentage.

The Round Robin router cycles through outgoing edges in order (a per-group counter) — for deterministic, even distribution.