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?
CodePudding user response:
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.