CDLUC3 / dmsp_aws_prototype

Sceptre CloudFormation templates for DMPHub v2
MIT License
1 stars 0 forks source link

Update SQS delivery timeframe #3

Closed briri closed 1 year ago

briri commented 2 years ago

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

briri commented 1 year ago

Consider switch to EventBridge

briri commented 1 year ago

related to https://github.com/CDLUC3/dmp-hub-sam/issues/12

briri commented 1 year ago

Switched to use EventBridge