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?

1 Risposta
0
Risposta accettata

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
ESPERTO
Uri
con risposta 9 mesi fa
profile pictureAWS
ESPERTO
verificato 9 mesi fa
  • I see, Thank you so much for answering

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande