AlgoViz

Routing across model providers

hard 7 min

A provider gateway chooses an execution path for each request.

Trace the example

Follow the evidence through each stage, then test a change in the case.

A slow provider during an invoice rush

A slow provider during an invoice rush. Selected component: Policy filter inside Gateway.
Open full-size diagram

Gateway

Two eligible EU routes

The tenant requires EU processing and a typed amount field. A third provider fails residency and never receives the input.

Only an out-of-region route can meet the deadline. Which response respects the contract?

Decide whether a fallback can finish

Defer · fallback would finish 250 ms late

Only one route meets residency and schema requirements. Its estimated service time is 700 ms with an empty queue. A production router accounts for queueing and uncertainty.