ffcm
ffcm

Reputation: 207

Multiple DynamoDB triggers for Lambda - Separate invocation per table?

If I have a Lambda function that has multiple DynamoDB Stream triggers, is it guaranteed that each Lambda invocation only contains records from one table?

Upvotes: 3

Views: 2290

Answers (1)

Arafat Nalkhande
Arafat Nalkhande

Reputation: 11718

Yes. Each lambda invocation will get record from one table

Refer Using AWS Lambda with Amazon DynamoDB

Following is an extract from that web page

The event your Lambda function receives is the table update information AWS Lambda reads from your stream. When you configure event source mapping, the batch size you specify is the maximum number of records that you want your Lambda function to receive per invocation.

Upvotes: 4

Related Questions