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.
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.
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.
Infinite scale and high throughput - the account limit on API Gateway is 10,000 requests per second or about 864M calls daily.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With