Skip to main content

Module rate_limiter

Module rate_limiter 

Source
Expand description

Rate limiter with exponential backoff and circuit breaker integration.

Provides per-provider rate limiting that respects 429 responses and backs off exponentially to avoid burning API budget.

§Feature flag

Rate limit backoff is controlled by the RATE_LIMIT_BACKOFF_ENABLED environment variable (default: false for backward compatibility).

Structs§

RateLimiter
Per-provider rate limit tracker with exponential backoff.

Functions§

is_rate_limit_backoff_enabled
Whether rate limit backoff is enabled via environment variable.