Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The ability to update/refund the value of token bucket directly from user code #186

Open
androxylo opened this issue Apr 25, 2023 · 0 comments

Comments

@androxylo
Copy link

The functionality I cannot find, please excuse if am wrong.

Suppose I execute a request for which I don't have a good way to estimate its cost in advance. After the request is done, I know its real cost more precisely. Then I can take the difference between initial cost estimate and real cost end refund/penalize the token bucket from the resulting cost.

Another case is when the backend has free resources or severely overloaded. I may want to accelerate or slowdown the token drip in all buckets. It could be done if I have an ability to change the current value one way or another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant