Skip to main content

Module store

Module store 

Source
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.
MemoryStore
In-process fixed-window counter store (per replica).

Traits§

RateLimitStore
A backend that records request hits and decides whether each is allowed.