Reputation: 2331
I need to implement the following logic:
One of my main issue is how to get triggered when all the concurrent lambdas of step 3 has finished. What is the best, most elegant way to accomplish that? I had suggestions to try using AWS step function, but it seems that the Parallel state can only have fixed number, known in advance branches.
Upvotes: 1
Views: 92
Reputation: 522
As you are already using Dynamodb in your solution, one possible solution I could think:
Step 2:
Extract Images and store total_count in Dynamodb
Step 3:
At the end of Lambda increment new column current_count
if(current_count==total_count){ trigger Step 4 }
Upvotes: 2