Retries, Timeouts & Fallbacks
LLM APIs fail in ways ordinary APIs don't: long, variable latencies, rate limits under load, occasional malformed outputs and provider outages. A production LLM call is wrapped in several layers of defense.
In this lesson
- What to retry, and what not to
- Exponential backoff with jitter
- Timeouts and deadlines
- Fallbacks
- Caching
- Idempotency
This lesson is part of AI Engineering. Unlock the full course to read it, take the quiz and track your progress.