v2.2.4 traffic control release
flex-rate-limit
Traffic Control for Node.js Services

Shape bursts, share counters, and expose predictable retry metadata with Memory, Redis, cache-hub atomic backends, four algorithms, and Express-style middleware.

Rate limiting traffic control panelRate limiting traffic control panel

Framework-Neutral Guard

Call check() directly in any runtime, or wrap middleware() for Express-compatible request flows.

Window and Bucket Control

Sliding window, fixed window, token bucket, and leaky bucket cover fairness, burst capacity, and smoothing needs.

Shared Counter Backends

Start with in-process Memory, then move to Redis or CacheHubStore when counters must be shared across instances.

Lifecycle Cleanup

Close owned Redis clients and cache-hub cleanup resources with await limiter.close().

Independent Allowlist

Keep IP allowlist authorization separate from route quotas, with global and route-level configuration patterns.

Measured Performance

Memory, Redis direct, HTTP middleware, and OSS comparison data are documented with commands and environment.