SQS-交付延迟30分钟 [英] SQS - Delivery Delay of 30 minutes
问题描述
根据SQS的文档,我们可以配置一条消息以使其对消费者隐藏的最大延迟时间是15分钟-
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/latest/SQSDeveloperGuide/sqs-delay-queues.html
假设我需要隐藏一天的邮件,其模式是什么? 例如.我想模仿做某事的日常cron.
Suppose if I need to hide the messages for a day, what is the pattern? For eg. I want to mimic a daily cron for doing some action.
谢谢
推荐答案
可见性超时最多可以执行12个小时.我认为您可以在处理邮件的地方一起破解某些东西,但不要删除它,下次处理该邮件要花费12个小时.因此,只有一条消息且可见性超时为12小时的队列.那将使您获得12个小时的计划.
Visibility timeout can do up to 12 hours. I think you can hack something together where you process a message but don't delete it and next time it is processed its been 12 hours. So a queue with one message and visibility timeout of 12 hours. That gets you a 12 hour cron.
这篇关于SQS-交付延迟30分钟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!