failsafe-lib / failsafe

Fault tolerance and resilience patterns for the JVM
https://failsafe.dev
Apache License 2.0
4.17k stars 296 forks source link

Implement Bitbucket Server's Rate Limiting #334

Open numeralnathan opened 2 years ago

numeralnathan commented 2 years ago

Bitbucket Server has rate limiting. The rate limit starts with a bucket of say 50 requests and the bucket refills at 4 requests per second. I setup a smooth rate limiter with 4 requests per second. Sadly, this means I can never take advantage of the 50 requests. Please create a rate limiter that implements Bitbucket's rate limiting.