rack-throttle
Rack middleware for rate-limiting incoming HTTP requests. (by dryruby)
redrate
An easy, distributed rate limiter using Redis (by nulib)
rack-throttle | redrate | |
---|---|---|
1 | 1 | |
948 | 9 | |
0.0% | - | |
1.2 | 0.0 | |
about 1 year ago | over 1 year ago | |
Ruby | Ruby | |
The Unlicense | 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.
rack-throttle
Posts with mentions or reviews of rack-throttle.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-05-24.
-
Need help designing architecture to handle API rate limit
rack-throttle is usually used to throttle incoming requests, but it has a generic [Second](Rack::Throttle::Second) class which could be used to throttle any operation to a maximum number per second. It stores its counter in either redis or memcache, which will work as the shared store and be performant.
redrate
Posts with mentions or reviews of redrate.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-05-24.
-
Need help designing architecture to handle API rate limit
Here’s a possible solution that is similar to (although more complex than) what I ended up going with: https://github.com/nulib/redrate
What are some alternatives?
When comparing rack-throttle and redrate you can also consider the following projects:
Rack::Attack - Rack middleware for blocking & throttling
sidekiq-throttler - Sidekiq middleware that adds the ability to rate limit job execution.
Puma - A Ruby/Rack web server built for parallelism
Sinatra - Classy web-development dressed in a DSL (official / canonical repo)
sane_patch - Making monkey patches sane again
Rack - A modular Ruby web server interface.
bestgems.org - Gem ranking and downloads trends providing service.