1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
This commit is contained in:
Mike Perham 2020-11-04 09:02:56 -08:00
parent 7d78711672
commit eeaf41c7fd

View file

@ -7,6 +7,17 @@ Please see [sidekiq.org](https://sidekiq.org) for more details and how to buy.
HEAD HEAD
------------- -------------
- Add new **leaky bucket** rate limiter [#4414]
This allows clients to burst up to X calls before throttling
back to X calls per Y seconds. To limit the user to 60 calls
per minute:
```ruby
leaker = Sidekiq::Limiter.leaky("shopify", 60, :minute)
leaker.within_limit do
...
end
```
See the Rate Limiting wiki page for more detail.
- Rate limiters may now customize their retry count [#4725] - Rate limiters may now customize their retry count [#4725]
To disable rate limit retries, use `retry: 0`. To disable rate limit retries, use `retry: 0`.
```ruby ```ruby