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

Hitting user quota for messages.get: missing (undocumented) 15k req/user/min limit #232

Open
tadfisher opened this issue Jan 5, 2023 · 1 comment

Comments

@tadfisher
Copy link
Contributor

I am experiencing rate-limiting for the messages.get endpoint, which doesn't make much sense according to the documentation:

Per user rate limit 250 quota units per user per second, moving average (allows short bursts).

The messages.get unit is 5 requests, so 1250 requests/s should be fine, and the sync is not going anywhere near that rate.

So I created OAuth credentials to see if I could find what quota I'm hitting, and I see two pieces of evidence:

image

image

To me, this looks like an additional undocumented quota of 15k requests/user/minute, which I am obviously hitting. This explains the behavior I'm seeing as well, where the rate-limit errors start occurring about 1 minute into the sync.

So we may want to track a moving 1-minute window of requests and add additional delays to keep under this limit.

@gauteh
Copy link
Owner

gauteh commented Jan 5, 2023 via email

@gauteh gauteh changed the title Hitting user quota for messages.get Hitting user quota for messages.get: missing (undocumented) 15k req/user/min limit Sep 10, 2023
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