简体   繁体   English

AWS SQS 死信队列重新驱动策略

[英]AWS SQS dead-letter queue redrive policy

In my system there is a main-queue and dead-letter-queue.在我的系统中有一个主队列和死信队列。

When any message failed in main-queue it goes to dead-letter-queue.当主队列中的任何消息失败时,它会进入死信队列。

Reason of failing message in main-queue sometime random not critical ie message can be processed if reattempt from the main-queue.主队列中消息失败的原因有时是随机的,不是关键的,即如果从主队列重新尝试,则可以处理消息。

In my system there are 3 attempt to any failed message, meaning will send message to main-queue from dead-letter-queue only 3 times.在我的系统中,任何失败的消息都会尝试 3 次,这意味着只会将消息从死信队列发送到主队列 3 次。

How can i track the message whether its 3rd attempt is exhausted and there is no need to send it back to main-queue for processing (will keep in dlq till it expire)?我如何跟踪消息是否第三次尝试已用尽并且无需将其发送回主队列进行处理(将保留在 dlq 中直到它过期)?

You can use the property ApproximateReceiveCount from MessageAttributes in SQSEvent.SQSMessage您可以在SQSEvent.SQSMessage中使用 MessageAttributes 中的属性ApproximateReceiveCount

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS SNS 主题子:死信队列(重新驱动策略)权限被拒绝 - AWS SNS Topic Sub: Dead-letter queue (redrive policy) permissions denied 如何使用 Ansible 和 AWS 将重新驱动策略(死信队列/DLQ)添加到 SNS 订阅 - How to add a redrive policy (dead-letter queue / DLQ) to a SNS subscription, with Ansible and AWS SQS批次中的所有消息是否在达到最大redrive(Retry)策略数后都发送到Dead Letter Queue - Are all the messages in SQS batch sent to Dead Letter Queue after reaching the maximum redrive(Retry) policy number AWS SQS重新驱动策略,请在队列的末尾进行混乱 - AWS SQS redrive policy, which end of the queue do messges go to 重新处理 AWS SQS 死信队列消息 - Reprocess AWS SQS Dead Letter Queue messages AWS SQS死信队列通知 - AWS SQS Dead Letter Queue notifications AWS 在将 sqs 消息复制到死信队列时是否保留相同的消息 ID? - Does AWS keep the same message id when it copies sqs message to dead-letter queues? AWS SQS 队列将消息直接发送到死信队列 - AWS SQS queue sending messages directly to Dead Letter Queue 关于使用Cloudformation在AWS上创建SQS队列/死信队列的问题 - Questions about creating an SQS queue/dead letter queue on AWS with cloudformation AWS SQS死信队列-仅在某些情况下 - AWS SQS Dead Letter Queue - only in certain cases
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM