parallel-consumer icon indicating copy to clipboard operation
parallel-consumer copied to clipboard

Add distributed rate limiting support

Open astubbs opened this issue 4 years ago • 1 comments

Use a central cache to share rate limit info amongst processing cluster, to implement coordination of rate limit exhaustion to prevent accidental overrun while effectively exhausting the available credits.

https://dzone.com/articles/introduction-jcache-jsr-107 https://github.com/vladimir-bukhtoyarov/bucket4j vs https://github.com/mokies/ratelimitj

resilience4j doesn't support distriubted rate limiting: https://github.com/resilience4j/resilience4j/issues/350#issuecomment-720961836

astubbs avatar Nov 05 '20 17:11 astubbs

Had a quick look at it - something like this with Reactor and BucketJ should work.

astubbs avatar Oct 06 '21 13:10 astubbs

Closing Issue

johnbyrnejb avatar Jul 07 '23 14:07 johnbyrnejb