Expand description
Rate-limit counter storage.
RateLimitStore abstracts where per-key counters live. MemoryStore is
the default and keeps counters in-process (per replica). [RedisStore]
(behind the redis feature) shares counters across replicas, which is what
a multi-instance deployment behind a load balancer needs for correct global
limits.
Structs§
- Decision
- Outcome of recording one request against a key.
- Memory
Store - In-process fixed-window counter store (per replica).
Traits§
- Rate
Limit Store - A backend that records request hits and decides whether each is allowed.