Idea for a rate limiting implementation in ruby
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
rate_limit.rb

README.md

Idea for a rate limiting implementation in ruby:

  • Count events in buckets of configurable width (i.e. 60 seconds)
  • Aggregate total by looking at last n buckets
  • Use key/value store that supports increment/multiget to be efficient