了解AWS Lambda限制 [英] Understanding AWS Lambda Limits

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

问题描述

我正在尝试了解"调用请求正文有效负载大小"限制.是lambda函数提供的响应限制吗?

I am trying to understand the "Invoke request body payload size" limit. Is this limit for response provided by the lambda function.

我的用例:

  1. S3事件触发Lambda函数

  1. S3 event triggers Lambda function

Lambda函数由对S3存储桶的调用组成,以获取获取对象.该对象(json文件)预计最大为1GB.

Lambda functions consists of a call to S3 bucket to fetch fetch object. The Object (json file) is expected to be maximum 1GB.

Lambda函数处理json文件中的数据,并对DynamoDB进行单独/批量调用,以插入从文件中每个json对象派生的必要信息.每个DynamoDB记录插入都将在DynamoDB记录限制之内.

Lambda function processes data from json files and makes individual/batch calls to DynamoDB inserting necessary information derived from each json object in file. Each record DynamoDB insertion will be within DynamoDB record limits.

在功能结束时返回"true/success"消息.

Return a "true/success" message at end of function.

由于内存分配可以达到近3GB,所以我看不到将整个对象加载到内存中的问题.但是,我很难理解调用请求正文有效负载大小".是否仅限于触发lambda函数以及在函数末尾返回的响应的请求/事件?还是这也暗示着从lambda内部进行的外部调用(例如,从S3存储桶中获取大型对象)?

Since Memory Allocation can be upto almost 3GB I do not see loading the entire object into memory an issue. However, I am having difficulties understanding "Invoke request body payload size". Is it limited to only request/event that triggers lambda function as well as response returned at the end of function? or does this also imply to external calls made from within lambda as well (e,g fetch huge object from S3 bucket)?

推荐答案

这仅适用于作为请求正文中的有效负载传递给 Invoke 操作(

This only applies to the body passed as the payload in the request body to the Invoke action (https://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html#API_Invoke_RequestSyntax).

它不限制在lambda函数中进行的任何调用的主体

It does not limit the body of any calls made within the lambda function

这篇关于了解AWS Lambda限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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