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

Throttle exceeds limit after a delay #49

Open
StructByLightning opened this issue Mar 28, 2024 · 1 comment
Open

Throttle exceeds limit after a delay #49

StructByLightning opened this issue Mar 28, 2024 · 1 comment

Comments

@StructByLightning
Copy link

I'm making API calls to a rate-limited endpoint (1000 requests/minute). I set p-throttle to allow 900 requests/limit and for a few minutes it seems to work fine. But after that the rate spikes to about 1100/minute, and shortly afterwards we get 429s from the API for exceeding their limit. I'm not sure why this happens. We're using the strict mode mentioned in #26.

I can provide a demo if necessary.

@sindresorhus
Copy link
Owner

It would be useful if you would be able to provide a failing test.

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

2 participants