Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Request payload limit with AWS API Gateway

Tags:

What is the request-payload limit with AWS API-Gateway?

I need to send a JSON payload with base64 encoded files and some other parameters to API Gateway, that will then pass on the payload to AWS Lambda.

I could not find AWS documentation regarding this.

like image 632
Suhail Gupta Avatar asked Sep 22 '17 07:09

Suhail Gupta


People also ask

How many requests can AWS API gateway handle?

Amazon API Gateway has raised the default limit on requests made to your API to 10,000 requests per second (RPS) from 1,000 RPS. The burst limit has been raised to 5,000 requests across all APIs in your account from the original limit of 2,000 requests.

What is payload limit in API?

The maximum payload limit for a single API call is 45 MB, so ensure that the aggregate size of the records in a request do not exceed this limit.

How many requests can API gateway handle per second?

Infinite scale and high throughput - the account limit on API Gateway is 10,000 requests per second or about 864M calls daily.


1 Answers

Maximum payload to API gateway is 10 MB and maximum payload for Lambda is 6 MB, which cannot be increased.

Please see API gateway payload limits here

Please see Lambda payload limits here

But there is an alternative way (a work around) to achieve the same by uploading data to an S3 bucket if your size is more that 10 MB. Please read the below article for details (Unofficial document):

https://sookocheff.com/post/api/uploading-large-payloads-through-api-gateway/

like image 176
Vijayanath Viswanathan Avatar answered Oct 07 '22 22:10

Vijayanath Viswanathan