Created
November 2, 2023 15:57
-
-
Save aldobongio/f4811bddd38043c7c592817ab397be16 to your computer and use it in GitHub Desktop.
bucket4j Jedis 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 | |
Unexpected outcome: was false but expecting true | |
Attempt to consume 1 | |
Unexpected outcome: was true but expecting false | |
========================= | |
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 | |
Unexpected outcome: was false but expecting true | |
Attempt to consume 1 | |
Unexpected outcome: was true but expecting false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment