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

add a rateLimit() operator #8

Open
loreanvictor opened this issue Jun 12, 2020 · 0 comments
Open

add a rateLimit() operator #8

loreanvictor opened this issue Jun 12, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@loreanvictor
Copy link
Owner

throttle() and throttleTime() operators work perfectly fine for rate-limiting, except that they ignore throttled requests altogether. this can be fixed with a timeout() with a custom return status, however thats a hacky solution.

instead, the neatest, most convenient solution would be to have a rateLimit() operator that acts exactly like throttle() but also responds to throttled requests with a 429 status code.

@loreanvictor loreanvictor added the enhancement New feature or request label Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant