https://github.com/opencoff/go-ratelimit
golang ratelimiter without using channels or timers
https://github.com/opencoff/go-ratelimit
drip-fill golang ratelimiter token-bucket
Last synced: 5 months ago
JSON representation
golang ratelimiter without using channels or timers
- Host: GitHub
- URL: https://github.com/opencoff/go-ratelimit
- Owner: opencoff
- License: gpl-2.0
- Created: 2018-02-28T23:12:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-21T04:47:47.000Z (almost 5 years ago)
- Last Synced: 2025-03-31T20:39:14.990Z (6 months ago)
- Topics: drip-fill, golang, ratelimiter, token-bucket
- Language: Go
- Size: 23.4 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-ratelimit - Simple wrapper around `golang.org/x/time/rate`
## What is it?
Token bucket ratelimiter for golang; it wraps the `Limiter` in
`golang.org/x/time/rate`. It implements global *and* per-host rate limits.
It uses an LRU cache to cache the most frequently used per-host limiters.