Introduction
We are building an application to process a monthly file, and there are many aws components involved in this project:
- Lambda reads the file from S3, parse it and push it to dynamoDB with flag (PENDING) for each record.
- Another Lambda will processing these records after the first Lambda is done, and to flag a record as (PROCESSED) after it's done with it.
Problem: We want to send a result to SQS after all records are processed.
Our approach Is to use DynamoDB streaming to trigger a lambda each time a record gets updated, and Lambda to query dynamoDB to check f all records are processed, and to send the notification when that's true.
Questions
- Are there any other approach that can achieve this goal without triggering Lambda each time a record gets updated?
- Are there a better approach that doesn't include DynamoDB streaming?