We've been experiencing rate limiting in the API Gateway Management API's PostToConnection operation for a WebSocket API in us-west-2. I cannot find a reason why we might be hitting this limit.
The peak we've sent at is roughly 2.47k messages per minute, and we hit this throttle last night where our max rate was 450 requests per minute (both based on the account-level MessageCount metric in CloudWatch). The full error message in this case is "Service returned error code LimitExceededException".
I read somewhere that this could be either the service throttling us for calling PostToConnection too rapidly, or that client buffers are full. The message would indicate that we are seeing the former, as it does not mention the client buffer at all.
This feels like a very low rate to experience throttling, and I see nowhere that I can increase this limit (aside from the overall 10k requests per second rate, which we're nowhere close to hitting).
My question is: how can we avoid hitting this rate limiting (is there some hidden quota?), or how can we debug further to determine the complete root cause?
I've tried to open a case with support to no success.
I have other REST APIs, but only this web socket API. The metrics that I'm referencing are account-wide metrics. Summing up all the account-wide count metrics still come out to at most 8k requests per minute.
I'm just not sure what quota to request; the only seemingly relevant quota is the overall 10k RPS throttle limit overall, which as noted, we should be nowhere near close to hitting.