alwaysAStudent
alwaysAStudent

Reputation: 2274

Understanding AWS Lambda Limits

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

Upvotes: 2

Views: 1736

Answers (1)

Fionn
Fionn

Reputation: 146

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

Upvotes: 2

Related Questions