Skip to content

Instantly share code, notes, and snippets.

@aldobongio
Created November 2, 2023 15:59
Show Gist options
  • Save aldobongio/116b298343249dd4b89944694847570f to your computer and use it in GitHub Desktop.
Save aldobongio/116b298343249dd4b89944694847570f to your computer and use it in GitHub Desktop.
bucket4j local snippet outcome
=========================
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