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

Rate limiter: add a minimum sleep time #114

Open
bmerry opened this issue Oct 19, 2020 · 0 comments
Open

Rate limiter: add a minimum sleep time #114

bmerry opened this issue Oct 19, 2020 · 0 comments

Comments

@bmerry
Copy link
Contributor

bmerry commented Oct 19, 2020

If the rate limiter tries to sleep for very short (sub-µs) times, it oversleeps and is unable to catch up. Add a parameter to stream_config to set a minimum time to try to sleep, which will be a compromise between batch size and limit accuracy.

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

No branches or pull requests

1 participant