token-bucket
Zero-Dependency Lock-Free Atomic GCRA, Fixed-Window, Token-Bucket & Keyed Rate Limiters
Overview
token-bucket provides zero-dependency, lock-free atomic GcraLimiter, FixedWindowLimiter, TokenBucketLimiter, and a sharded, bounded KeyedRateLimiter for per-IP, per-tenant, and per-route admission control.
Installation
Usage
use ;
let policy = Gcra;
let limiter: = new.unwrap;
let decision = limiter.check_at_ns;
assert!;
Verification
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For inquiries, please contact the author at root@devhub.vip.