Request weights in AWS API Gateway

0

Computing cost of each APIs are different (some GET methods is more lightweight than POST for e.g.) in most usecases. To achieve flexible and fair distribution of API usages for each users/tenants, we'd like to set weights to each API calls, and ratelimit or set quota on total weights requested.

For example, in Apigee platform, you can configure message weight for each apis. https://www.googlecloudcommunity.com/gc/Cloud-Product-Articles/Apigee-Edge-4MV4D-Quota-Policy-Message-Weight-S02E05/ta-p/77423

Is it possible to achieve it by utilizing AWS API Gateway policies?

demandé il y a 9 mois252 vues
1 réponse
0
Réponse acceptée

You can't really set weights on APIs like you describe, however, you can set different rates for each endpoint.

You can find more information about throttling here, and more specifically about method level throttling here.

profile pictureAWS
EXPERT
Uri
répondu il y a 9 mois
profile pictureAWS
EXPERT
vérifié il y a 9 mois
  • I see, Thank you so much for answering

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions