Conceptual
Login

API Throttling

Throttle classes such as AnonRateThrottle, UserRateThrottle, and ScopedRateThrottle track request timestamps per identity in the cache and reject requests over the configured rate with 429 and a Retry-After header. Rates like '100/day' are simple sliding-window checks — a policy backstop, not a substitute for edge rate limiting.

This Concept is waiting for its first lesson!

Throttle classes such as AnonRateThrottle, UserRateThrottle, and ScopedRateThrottle track request timestamps per identity in the cache and reject requests over the configured rate with 429 and a Retry-After header. Rates like '100/day' are simple sliding-window checks — a policy backstop, not a substitute for edge rate limiting.

Are you a teacher? Sign in to start contributing.

Sign In