Categories: None [Edit]

ruby_rolling_rate_limiter

https://rubygems.org/gems/ruby_rolling_rate_limiter
https://github.com/logicsaas/ruby_rolling_rate_limiter
Often Redis is used for rate limiting purposes. Usually the rate limit packages available count how many times something happens on a certain second or a certain minute. When the clock ticks to the next minute, rate limit counter is reset back to the zero. This might be problematic if you are looking to limit rates where hits per integration time window is very low. If you are looking to limit to the five hits per minute, in one time window you get just one hit and six in another, even though the average over two minutes is 3.5. This package allows you to implement a correct rolling window of threshold that's backed by ATOMIC storage in Redis meaning you can use this implementation across multiple machines and processes.

Total

Ranking: 84,209 of 186,833
Downloads: 10,086

Daily

Ranking: 41,370 of 186,696
Downloads: 11

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,901,817,099bundler
101,126,598,827rake
161,053,476,511minitest
79501,721,757redis
1,10437,900,604redlock
2,5476,923,368bump

Owners

#GravatarHandle
1iconkarlkloppenborg