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 年前檢視次數 633 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南