Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 6 hours 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 (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-18T05:56:39.000Z (over 1 year ago)
- Last Synced: 2024-10-12T09:08:57.071Z (4 months ago)
- Topics: golang, leaky-bucket, ratelimit, redis, sliding-window
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-ratelimiting
[![codecov](https://codecov.io/gh/aidenwallis/go-ratelimiting/branch/main/graph/badge.svg?token=I1PYX4TGE9)](https://codecov.io/gh/aidenwallis/go-ratelimiting) [![Go Reference](https://pkg.go.dev/badge/github.com/aidenwallis/go-ratelimiting.svg)](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.