How to handle Refill and Bucket instances over multiple PODs? #272
-
I've an application (spring boot) running over multiple pods on kubernetes. All the instances consume remote services that have throttling management. Sometimes, Pod A consume the service, another Pod B and so on, on some circumstances, all Pods can try to access these remote services at same time, and my application has to handle these. Working with "bucket.tryConsume" everything is running well, my problem still with "Refill" strategy, and how to share my Bandwidth across all Pods. Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @lfaltran You need to use distributed buckets. Bucket4j supports many backends for such case: |
Beta Was this translation helpful? Give feedback.
Hello @lfaltran
You need to use distributed buckets. Bucket4j supports many backends for such case: