Expand description

Keyed rate limiters (those that can hold one state per key).

These are rate limiters that have one set of parameters (burst capacity per time period) but apply those to several sets of actual rate-limiting states, e.g. to enforce one API call rate limit per API key.

Rate limiters based on these types are constructed with the RateLimiter constructors

Traits

A trait for state stores with one rate limiting state per key.

Keyed rate limiters that can be “cleaned up”.

Type Definitions

A concurrent, thread-safe and fairly performant hashmap based on DashMap.

The default keyed rate limiter type: the concurrent DashMap.

A thread-safe (but not very performant) implementation of a keyed rate limiter state store using HashMap.