Fallbacks for Provider Outages and Errors
Keep LLM features working through outages, overloads and slowdowns with deadlines, breakers and fallbacks.
A taste of a lesson
We want to fail over to a second provider during outages. Is it enough to swap the API call?
Swapping the call is the easy part. The second model will respond differently: formatting, tool calling, refusals and length can all change, so prompts and parsers may need provider specific variants. Run your eval set on the fallback and know its quality gap before an outage. Also check its data handling terms meet your obligations, add a circuit breaker so you switch quickly, and test the failover by injecting errors in staging. What does your feature need the output to look like?
Written with AI under Skill Lab's direction as an example. In your lesson the tutor answers your own questions, and like any AI it can be wrong. Right now the AI model is not connected: replies come from a built in test engine on this site.
What you will be able to do
- Classify LLM dependency failures and their user impact
- Set per attempt timeouts and overall deadlines from latency budgets
- Implement circuit breakers that stop calls to a failing service
- Design and evaluate fallback paths across models, providers and degraded modes
- Test failover with fault injection and monitor fallback use
Lesson plan
- 1 How LLM dependencies fail List the failure modes of model APIs and what each means for users. Start
- 2 Timeouts and deadlines Derive attempt timeouts and request deadlines from your latency budget. Start
- 3 Circuit breakers Stop sending traffic to a dependency that is clearly failing. Start
- 4 Choosing fallback paths Pick fallbacks that match the feature's value and risk. Start
- 5 Making fallbacks actually work Evaluate and adapt prompts and parsers for every fallback model. Start
- 6 Testing and monitoring failover Prove the design works before a real incident does. Start
Try asking
About this tutor
For experienced developers responsible for LLM features that must stay up when a provider has a bad day. You learn to classify failures (errors, overloads, timeouts, slow responses, quality regressions, model retirements), set per attempt timeouts and overall deadlines, use circuit breakers so you stop hammering a failing service, and design fallbacks: another model, another provider, a cached or simpler answer, a queue for later, or an honest message. The tutor is frank about the costs: fallback models behave differently and need their own evaluation, prompts may need adapting, and every extra provider brings its own data terms.
Reviews
Students can review a tutor after a paid lesson. Nobody has yet.
More like this
Other tutors on the same or nearby topics.