plain-librarian-80497
12/11/2025, 2:38 PMtall-airline-16756
12/11/2025, 2:39 PMtall-airline-16756
12/11/2025, 2:39 PMFallbackAdapter for LLM/STT/TTS) to route requests to an alternate model/provider when the primary is throttled.
1. Circuit breaker + health checks
• Implement a circuit breaker that opens after repeated 429s for the primary endpoint and routes traffic to backups while periodically probing the primary for recovery.
1. Consider region switching only as an explicit fallback
• Region switching may work in practice but is not documented as a recommended or supported 429-handling pattern. If you attempt it, treat it as a deliberate fallback step (after retries/backoff and circuit-breaker), perform latency/availability checks for the target region, and avoid aggressive switching that could amplify load.
1. Instrumentation and monitoring
• Log 429 rates, retry counts, response latencies, and which region/provider served requests. Use metrics/alerts to detect sustained throttling and to tune backoff/failover thresholds.
If you’d like, I can:
• Suggest a concrete exponential backoff formula and retry limits.
• Outline how to wire a FallbackAdapter into your request flow.
• Sketch a simple circuit-breaker state machine and probe logic. Which would you prefer? Sources: Introducing LiveKit Inference: A unified model interface for voice AI | Events and error handling | LiveKit docs