Skip to content

Question: Is this throttler composable/chainable? #5

@dossy

Description

@dossy

Is this throttler composable/chainable? Can I wrap one in another?

In other words: Can I use this in some layered fashion that implements both a N per second throttle but also a M per minute throttle?

For example: No more than 3 concurrent requests per second and no more than 100 requests per minute.

I think the answer is "no" but maybe there's a clean way of combining/layering/composing this that could yield such functionality?

I love how simple this implementation is and I don't want to complicate it with such features, but if a chain of these can be used to implement such functionality, that would be awesome. I'm just not experienced enough at Python to see how to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions