We initially want the SQS queue to delivery messages to the Lambda functions immediately to ease testing.
In production though, we want it to delay for 5-10 minutes. This will prevent scenarios like where the caller system sends our API and update every time the user clicks save (as the DMPTool does now). Our API would still receive each update, but would not bother to do any EZID updates, PDF downloads, etc. for each occurrence.
We may need to convert the SQS to FIFO for this to be meaningful
This will also require us to do some message deduplication rules for the queue
We initially want the SQS queue to delivery messages to the Lambda functions immediately to ease testing.
In production though, we want it to delay for 5-10 minutes. This will prevent scenarios like where the caller system sends our API and update every time the user clicks save (as the DMPTool does now). Our API would still receive each update, but would not bother to do any EZID updates, PDF downloads, etc. for each occurrence.
We may need to convert the SQS to FIFO for this to be meaningful
This will also require us to do some message deduplication rules for the queue