gauteh/lieer

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

tadfisher opened this issue · 1 comments

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.