Backendcore
Fallbacks across providers
When the primary model is down, slow or rate-limited, fail over to another — tested in advance.
What it is and why it exists
Single-provider apps inherit every provider outage. A model gateway routes calls with retries, then falls back to a second deployment, region or provider, with prompts adapted and evaluated for each fallback model. Circuit breakers stop sending traffic to a failing provider quickly.
Quick prototype
One provider.
In production, at scale
A gateway with ordered fallbacks per route, per-provider circuit breakers, prompts and parsing tested against each fallback in the eval suite, region and capacity diversity, and metrics on how often fallbacks fire.
Vendors and tools
| LiteLLM / Portkey / OpenRouter | Gateways with fallbacks |
|---|---|
| Cloud provider endpoints | Same model in several regions |
On AWS: Bedrock cross-region inference profiles spread load across regions; provisioned throughput for guaranteed capacity.
How it fails
- Fallback model breaks the output parser
- Fallback never tested until the outage
What the interviewer asks next
What breaks when you fail over to another provider?
Prompt behaviour, tool-call formats, structured-output support, context limits and safety behaviour. Abstract the interface, keep per-model prompt variants, and include fallbacks in evals.