SQS - Delivery Delay of 30 minutes

前端 未结 4 1361
梦如初夏
梦如初夏 2021-01-04 21:33

From the documentation of SQS, Max time delay we can configure for a message to hide from its consumers is 15 minutes - http://docs.aws.amazon.com/AWSSimpleQueueService/late

4条回答
  •  余生分开走
    2021-01-04 22:02

    Cloudwatch is likely a better way to do it. You can use a createEvent API with the timer, and have it trigger either a lambda function or an API call to whatever comes next.

    Another way to do is to use the "wait" utility in an AWS step function.

    https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-wait-state.html

    In any case, unless you are extremely sure you will never need anything more than 15 minutes, the SQS backdoor to add the delay seems hacky.

提交回复
热议问题