Understanding AWS Lambda Limits

守給你的承諾、 提交于 2021-01-28 11:47:40

问题


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

My use case:

  1. S3 event triggers Lambda function

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

  3. 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.

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

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)?


回答1:


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).

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



来源:https://stackoverflow.com/questions/48536024/understanding-aws-lambda-limits

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!