179 questions
No questions match those filters.
How do you handle LLM provider outages in production?
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansEvery major LLM provider has outages, so a production system needs to plan for that rather than treat it as an exception. The standard pattern is a circuit breaker: once a primary provider’s error rate crosses a threshold within a rolling window, the gateway stops sending it traffic entirely and routes to a fallback provider, rather than continuing to retry a provider that’s clearly down. Layered underneath that, a semantic cache can keep serving common queries even during a full outage, proactive health checks can catch degradation before users notice, and a graceful fallback message beats a raw error when every provider is unavailable.
The part that’s easy to overlook is that swapping providers is not a drop-in endpoint change — different model families respond differently to the same prompt, so a genuinely reliable fallback path needs its own prompt adapter tuned for the backup provider, not just the primary provider’s prompt pointed at a different URL.