code_block
code_block

Reputation: 15

Unexpected DynamoDB streams batching behavior

I have created DynamoDB with stream enabled and given Batch window =60 sec and batch size=100 so that my Lambda will wait 60 seconds to trigger with all items in single Lambda.

I have added 7 items into DynamoDB and Lambda triggered after 60 seconds only but at 60 seconds it triggered three lambdas with 2 items,2 items,4 items in respective lambdas event.

What could be the issue?

dynamostream configuration

Upvotes: 1

Views: 1199

Answers (1)

hunterhacker
hunterhacker

Reputation: 7142

Presumably you have multiple partitions in DynamoDB. Each will initiate its own lambda invocations.

If your table is in On Demand mode then it starts with four partitions. Your updates touched three of them.

Upvotes: 4

Related Questions