Fault-tolerance primitives — retries, circuit breakers, timeouts, fallbacks, and health checks
Notes & tips
- Decorators are the common path; classes are for control. Reach
for
@retry/@circuit_breaker/@timeoutfirst. - Name your breakers. A stable
nameshares one breaker across call sites viaget_circuit_breaker. - Narrow
retryable_exceptions. Don't retry bugs. - Mind the async primitives.
with_fallback/with_timeoutreturn / take coroutines.