NPM module - izara-shared
Ideas
- can use Limit to test pagination
https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Query.html#DDB-Query-request-Limit
- We can restrict the number of records, eg we can use UserLimits to allow only 1000 NotificationGroups per user, trusting Query will never exceed Dynamo pagination limit
- One script can keep requesting from Dynamo until all records received -> danger of script exceeding resources if no limit on number of records
- Use async Lambda flow to process parts of the logic in sections *this is the stronger method for large result sets
- if data set might change during the async process, maybe have a timestamp (eg in a parent record for the set of data) saying when the data last changed, we send the last LastEvaluatedKey and this timestamp on to next lambda invocation, it can check the timestamp to make sure data is still the same.. if its changed, handle accordingly, eg start again