mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
leaky
This commit is contained in:
parent
7d78711672
commit
eeaf41c7fd
1 changed files with 11 additions and 0 deletions
|
@ -7,6 +7,17 @@ Please see [sidekiq.org](https://sidekiq.org) for more details and how to buy.
|
|||
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]
|
||||
To disable rate limit retries, use `retry: 0`.
|
||||
```ruby
|
||||
|
|
Loading…
Reference in a new issue