By using AWS re:Post, you agree to the Terms of Use

API Gateway throttles requests

0

I have an API Gateway resource connecting to lambda and I see that consecutive requests to the API are throttled. I don't have caching enabled and the rate of requests is far below the throttling level.

API Gateway configuration Enter image description here

The lambda also has been configured without an upper bound on invocations.

2 Answers
1

If you are confident that the throughput is below the rate and the burst limit for a particular API resource/method combination, then you may be hitting the overall account level limits for your account - https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html

In that case, you will need to open a support ticket with AWS support and apply for an increase in quotas.

profile picture
EXPERT
answered 2 months ago
1

API Gateway throttles requests to your API using the token bucket algorithm, where a token counts for a request. Specifically, API Gateway examines the rate and a burst of request submissions against all APIs in your account, per Region.

In the token bucket algorithm, a burst can allow pre-defined overrun of those limits, but other factors can also cause limits to be overrun in some cases.

When request submissions exceed the steady-state request rate and burst limits, API Gateway begins to throttle requests. Clients may receive 429 Too Many Requests error responses at this point. Upon catching such exceptions, the client can resubmit the failed requests in a way that is rate limiting.

Refer to the below link for additional details: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-request-throttling.html -- [1]

SUPPORT ENGINEER
answered 2 months ago
  • Thanks for taking the time to reply. In my case, the API is still under development and currently, it's just me querying the API. How can I disable this throttle for specific resources using the API? Also, I don't see this behaviour when I use HTTP integration. This only shows up with lambdas.

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