Reputation: 35
I need to run a Lambda Function with a Thousand of different inputs, I did it with a Event Bus and another lambda that send the events reading de input from a DynamoDB.
Is that the best way to do this? The lambda that send the events to the event bus, take too much time, and I need to do a loop to send 10 entries at time for the event bus limitations, in boto3.
Upvotes: 0
Views: 646
Reputation: 762
You can still trigger a stepfunction from Eventbridge and perform a parallel scan with dynamodb to produce the input for the lambda.
Alternatively you can update every dynamodb item with lambda or stepfunction and use dynamodb streams to trigger your lambda.
Upvotes: 1