Infrastructure

Rate Limiter Algorithm

Backend algorithms for enforcing API rate limits, each with different trade-offs in burst tolerance and fairness. Token bucket accumulates tokens at a fixed rate and allows bursts up to bucket capacity. Leaky bucket smooths output at a fixed rate. Sliding window counter tracks requests in a rolling time window. Fixed window counter resets counts at interval boundaries, creating a predictable but exploitable reset edge.

Protocoles associés

Voir aussi