Skip to content

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

@androxylo

Description

@androxylo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions