hyperlane-plugin-rate-limit 23.3.0

A 64-way sharded lock-free atomic GCRA and fixed-window rate limiter plugin for the Hyperlane framework with extensible KeyExtractor and RateLimitStore traits and RFC RateLimit headers.
Documentation
1
2
3
4
5
6
7
8
9
/// Rate-limiting algorithm used by [`crate::ShardedRateLimiter`].
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq)]
pub enum RateLimitAlgorithm {
    /// Generic Cell Rate Algorithm (smooth leaky-bucket with exact burst allowance, lock-free CAS).
    #[default]
    Gcra,
    /// Lock-free atomic fixed-window counter.
    FixedWindow,
}