Skip to content

Accuracy of reservoir refresh interval? #88

@swayam18

Description

@swayam18

In the docs it says that the accuracy of reservoirRefreshInterval is +-5 seconds.

This is a problem because many APIs have limits with 1 second granularity, i.e. they allow x requests every second. So, we may be off their rate limit by nearly 5x.

Is there something I can do to make sure the reservoir is refreshed accurately every second? Should I be using a custom timeout + incrementReservoir function?

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