BotNetwork

Circuit breakers around LLM and HTTP calls

Stop calling a failing dependency for a while.

Guide1 min readUpdated

Why it matters

A circuit breaker stops cascading timeouts when an LLM or HTTP dependency is down — fail fast, shed load, recover with half-open probes.

Practical steps

  1. Track error rate and latency per dependency.
  2. Open after a threshold; return a friendly fallback.
  3. Half-open with a single probe before closing.
  4. Alert when a circuit stays open more than N minutes.
  5. Do not delay the platform ACK behind a breaker.

Watch out for

  • One shared breaker for unrelated APIs.
  • Infinite retries inside an open circuit.

Related comparisons and tools