RubyGems Navigation menu

ruby_rolling_rate_limiter 0.1.3

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.

Gemfile:
= クリップボードにコピー コピー完了!

インストール:
=

バージョン履歴:

  1. 0.1.5 - April 18, 2016 (10.5KB)
  2. 0.1.4 - April 18, 2016 (10.5KB)
  3. 0.1.3 - April 14, 2016 (10.5KB)
  4. 0.1.1 - April 07, 2016 (10.5KB)
全てのバージョンを表示(全5件)

Runtime依存関係 (2):

redis ~> 3.2
redlock ~> 0.1.5

Development依存関係 (4):

bump >= 0
bundler ~> 1.11
minitest ~> 5.0
rake ~> 10.0

所有者:

作者:

  • Karl Kloppenborg

SHA 256チェックサム:

08f59495d09d24d4f395dac60cd29df4b355230fc7201f31147f3bd023ccb0a2

累計ダウンロード数 9,365

このバージョンのみ 2,863

ライセンス:

MIT

必要なRubyのバージョン: >= 0

リンク: