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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠