用户访问频率控制ratelimit,不同于网关级限流(包括go.uber.org/ratelimit漏桶限流以及github.com/juju/ratelimit令牌桶限流),本限流方案为业务级限流,适用于平台运营中,精细化的按单个用户,按IP等限流,为业内rdeis滑动窗口限流方案的纯GO替代方案,并且支持持久化(可选),可定期把历史数据备份到本地磁盘,程序重启也可保留之前的访问记录
-
Updated
Jan 8, 2024 - Go
用户访问频率控制ratelimit,不同于网关级限流(包括go.uber.org/ratelimit漏桶限流以及github.com/juju/ratelimit令牌桶限流),本限流方案为业务级限流,适用于平台运营中,精细化的按单个用户,按IP等限流,为业内rdeis滑动窗口限流方案的纯GO替代方案,并且支持持久化(可选),可定期把历史数据备份到本地磁盘,程序重启也可保留之前的访问记录
A set of performant rate limiters for Go
Lock-free implementation of the token bucket algorithm in C++
Async distributed rate limiters for Python
simple token bucket based rate limiter (e.g. for limiting HTTP API requests)
A distributed rate limiter, based on redis/lua and token-bucket algorithm.
A simple asyncio ready python implementation of a general purpose rate limiter based on Token Bucket algorithm
Redis-based rate limiting implementation using the token bucket algorithm for Node.js and TypeScript.
A TokenBucket algorithm implementation for Rust
Here is a box of chocolates, here is the magic room, come in and have a look for a surprise!
A distributed token bucket rate limiter for Go using Redis, with fallback support using golang.org/x/time/rate.
Http ratelimiter implemented using token bucket.
Implementation of Token Bucket in NodeJS
Node.js Rate Limiter
Token Bucket Algorithm with GUI interface
Add a description, image, and links to the tokenbucket topic page so that developers can more easily learn about it.
To associate your repository with the tokenbucket topic, visit your repo's landing page and select "manage topics."