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?

asked 3 months ago161 views
1 Answer
0
Accepted Answer

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
answered 3 months ago
profile pictureAWS
EXPERT
reviewed 3 months ago
  • I see, Thank you so much for answering

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions