Source for blog post about rate limiting in Sidekiq Enterprise
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
workers
Gemfile
Gemfile.lock
README.md
Rakefile
enqueue_work.rb
number_counter.rb

README.md

Limit the Enterprise

:enterprise_software_in_flames.jpg:

Sidekiq Enterprise rate limitin' spike. Can you use the limit feature outside of perform method in a plain-ol-ruby project? Especially the .delay style?

Limiting is not throttling! But we want limiting.

Running

You need the Sidekiq Enterprise gem. It's not free. I'm sorry.

Subject to who knows. There should hopefully be a tag showing vanilla sidekiq behavior versus the sidekiq-enterprise throttling feature.

bundle install  (this will fail if you have never installed sidekiq-ent before)

# run three of these in three different terminals
be rake worker

# run this a few times, as much as you want to queue up work
be rake enqueue

It's rate limited to two at a time. You'll see two people counting.