使用AWS API Gateway请求有效负载限制 [英] Request payload limit with AWS API Gateway

查看:379
本文介绍了使用AWS API Gateway请求有效负载限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

AWS API-Gateway的请求有效负载限制是多少?

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

我需要将带有base64编码文件和一些其他参数的JSON有效负载发送到API Gateway,然后将有效负载传递给AWS Lambda.

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.

我找不到与此有关的AWS文档.

I could not find AWS documentation regarding this.

推荐答案

API网关的最大有效负载为10 MB,Lambda的最大有效负载为6 MB,无法增加.

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

请参见此处

请参见此处

但是,如果您的大小超过10 MB,则可以通过将数据上传到S3存储桶来实现此目的的另一种方法(解决方法).请阅读以下文章以了解详细信息(非官方文件):

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/

这篇关于使用AWS API Gateway请求有效负载限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆