Api Gateway Payload size limit increase

0

Hi,

Right now there is a hard limit on the API Gateway for a request payload size under 10MB:
http://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html

I have 2 questions on this limit:

  1. Why 10MB? And why can't we configure that limit? A lot of api service provide to upload binary file that size are often over 10MB.
  2. Does api gateway increase or configure by myself this hard limit in the future?

Thanks.

awshaku
已提問 7 年前檢視次數 3256 次
2 個答案
1
  1. Why 10MB?

This was determined after reviewing with customers at the time of launch and after load testing the service at various values.

And why can't we configure that limit?

We may add this as a future enhancement to the service, but likely only for customers who may want to limit the payload further.

A lot of api service provide to upload binary file that size are often over 10MB.

Scaling a service to support arbitrary file uploads was not our core mission. AWS already offers another service that does this quite well, Amazon S3. We recommend that customers that have needs for large file transfers consider using S3 as the upload target and use API Gateway/Lambda to trigger processing of the data.

Regards,
Bob

專家
已回答 7 年前
  • Bob, since this was written 6 years ago perhaps it’s time for AWS to revisit this limit? Google is 32MB and Azure is 1GB. Callback providers don’t care what service the callback urls are using and they certainly aren’t going to build custom storage solutions for each one. Garmin is a good example, the activity callbacks are almost always over 6MB for bike rides (the lambda payload limit)

0

How will the aws api gateway behave when a compressed payload of size less than 10mb limit passed to api gateway? Will it accept it? Suppose the uncompressed version of the payload is more than 10mb but the compressed version is less than 10mb, then when aws api gateway auto decompress it, will it reject the request stating "Error "413 Request entity too large".

Please help me in understaning this.

已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南