https://github.com/aidenwallis/go-ratelimiting
Ratelimiting libraries for Go
https://github.com/aidenwallis/go-ratelimiting
golang leaky-bucket ratelimit redis sliding-window
Last synced: 6 months ago
JSON representation
Ratelimiting libraries for Go
- Host: GitHub
- URL: https://github.com/aidenwallis/go-ratelimiting
- Owner: aidenwallis
- License: mit
- Created: 2022-04-22T17:04:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-18T05:56:39.000Z (about 2 years ago)
- Last Synced: 2025-03-29T19:51:12.764Z (6 months ago)
- Topics: golang, leaky-bucket, ratelimit, redis, sliding-window
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-ratelimiting
[](https://codecov.io/gh/aidenwallis/go-ratelimiting) [](https://pkg.go.dev/github.com/aidenwallis/go-ratelimiting)
Ratelimiting libraries in Go.
These ratelimiters are used in production services for [Fossabot](https://fossabot.com), such as Twitch proxies.
There are two kinds of ratelimiters in this library:
* [**local**](local/README.md): Ratelimiters that are not persistent, and live in-process memory. Useful when you need to throttle a specific function, or some kind of usage within a single container.
* [**redis**](redis/README.md): Ratelimiters that connect to Redis and provide a distributed solution to your ratelimiting problems. Ideal for stateless, distributed applications, such as APIs.