Gateway rate limit mechanism clarification #6620
Replies: 1 comment 3 replies
-
It is a fixed window limiter, with multiple limiting buckets depending on the route you use. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The gateway section documents the send rate limit of 120 events per 60 seconds.
However, it's not documented exactly how that limit is implemented in practice, and since there's no rate limit information included in received gateway events (cf. REST API headers), this does leave end-users with a bit of a guessing game as to whether or not they're likely to overstep this limit with their next event:
The penalty for overstepping the rate limit is for the API to completely close the websocket in response, but it's difficult for end-users to implement their own mitigation mechanisms when the way the gateway calculates the rate limit isn't documented. I'd advocate for this information being added to the gateway docs.
Beta Was this translation helpful? Give feedback.
All reactions