redis_rate
Rate limiting for go-redis (by go-redis)
goralim
A rate limiting package for Go to handle distributed workloads (by 0verread)
redis_rate | goralim | |
---|---|---|
2 | 3 | |
765 | 139 | |
0.9% | - | |
0.0 | 6.8 | |
about 1 month ago | 24 days ago | |
Go | Go | |
BSD 2-clause "Simplified" License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
redis_rate
Posts with mentions or reviews of redis_rate.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-04-02.
-
Goralim – A rate limiting package for Go to handle distributed workloads
Fun weekend project but definitely not production-ready (no tests, no error handling, etc.). If readers are looking for something production-ready to use, consider https://github.com/go-redis/redis_rate (which implements GCRA/leaky bucket), or https://github.com/ulule/limiter (which uses a much simpler algorithm, but has good middleware).
goralim
Posts with mentions or reviews of goralim.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-04-02.
-
my first 100 stars on the GitHub repo
If you're someone who loves to contribute to open-source projects, you're more than welcome to contribute to my project goralim. If this story of mine gave you a little bit of motivation to work on that stupid idea you've had, go work on it. Build it for yourself. And I would appreciate some stars too on my project.
-
Goralim – A rate limiting package for Go to handle distributed workloads
Nice project, but for other readers, please don't use this in production. There is almost no error handling whatsoever going on: for example, see https://github.com/0verread/goralim/blob/main/goralim.go#L36. What happens if the redis calls in this function fail? If the Get here https://github.com/0verread/goralim/blob/main/goralim.go#L58 fails, for example if your redis connection dies, the code will always return false.
The code in the README will also result in a panic if the connection to the redis client fails.
Consider using https://github.com/go-redis/redis_rate (which implements leaky bucket/GCRA) or https://github.com/ulule/limiter (which implements a much more basic rate limiting algorithm, but has good middleware support) instead.