How can API Gateway WebSockets be throttled per-user?

0

I have a customer who is using API Gateway and WebSockets, and they'd like to throttle each user to ensure the service isn't overwhelmed by overly chatty clients.

Since API Gateway WebSockets don't support API keys and usage plans, the best approach I can think of is to put a restriction in the client code, which the customer luckily controls, so are there any other options from the server-side?

The important part of this is per-user throttling, not any generic throttling.

AWS
已提问 4 年前631 查看次数
1 回答
0
已接受的回答

API GW WebSockets supports throttling, but as you indicated, because it does not support API keys, the limits are global for the API and not imposed per user.

If you need to do it per user/client, I think you best bet would be to do it in the client, or, have some logic on the backend integration that will reject chatty clients.

profile pictureAWS
专家
Uri
已回答 4 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则