Replies: 1 comment 1 reply
-
Hello @HrnSvnc There is no such high-level functionality. What concrete troubles do you have? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
currently im trying to implement a limit based bucket by IPs. My idea was to throttle my api like this:
Every IP can request 25 Tokens per Minute but with a maximum of 2 token per second.
My bucket configuration looks likes this:
My method inside my controller looks like this:
I have trouble implementing the ip based rule since Im not sure how that could work or if that functionality even exists. The spring-boot-starter from Marc Griffing does have the possibility to use a filter Type based on IP adresses.
Is there a way with bucket4j-core to use the same functionality?
Thanks in advance and thank you for your work!
Beta Was this translation helpful? Give feedback.
All reactions