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.

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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ