Created
November 2, 2023 15:59
-
-
Save aldobongio/116b298343249dd4b89944694847570f to your computer and use it in GitHub Desktop.
bucket4j local snippet outcome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
========================= | |
Setting bandwith to 5/min | |
Attempt to consume 5 | |
Attempt to consume 1 | |
Update configuration to 10/min using strategy PROPORTIONALLY | |
Sleeping 60+ seconds in order to refill all tokens | |
Attempt to consume 10 | |
Attempt to consume 1 | |
========================= | |
Setting bandwith to 5/min | |
Attempt to consume 5 | |
Attempt to consume 1 | |
Update configuration to 10/min using strategy AS_IS | |
Sleeping 60+ seconds in order to refill all tokens | |
Attempt to consume 10 | |
Attempt to consume 1 | |
========================= | |
Setting bandwith to 5/min | |
Attempt to consume 5 | |
Attempt to consume 1 | |
Update configuration to 10/min using strategy RESET | |
Sleeping 60+ seconds in order to refill all tokens | |
Attempt to consume 10 | |
Attempt to consume 1 | |
========================= | |
Setting bandwith to 5/min | |
Attempt to consume 5 | |
Attempt to consume 1 | |
Update configuration to 10/min using strategy ADDITIVE | |
Sleeping 60+ seconds in order to refill all tokens | |
Attempt to consume 10 | |
Attempt to consume 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment