Skip to main content

Module limit_count

Module limit_count 

Source
Expand description

Fixed-window request-count limiting plugin (limit-count).

The featherbit port of Apache APISIX’s limit-count: counts requests per resolved key within a fixed time window using a shared CounterStore backend (see crate::ratelimit). Requests that exceed count within time_window seconds are rejected through the node’s error port with the configured status. Unlike the token-bucket rate-limit plugin (smooth refill), this enforces a hard cap per discrete window, matching APISIX semantics.

Structs§

LimitCountPlugin
Enforces a per-key request count within a fixed time window.