亚马逊SQS如何处理相同的消息?
如果您将消息发送到特定的 Amazon SQS 队列,并多次向同一队列发送相同的消息,... amazon sqs 是否将它们作为单独的消息处理?或者它是否检测到它是相同的消息并且只在队列中存储一条消息?
谢谢
丹尼尔
if you send a message to an specific Amazon SQS queue, and keep sending the same message to the same queue many times, ... does amazon sqs handles them as separate messages ?? or does it detect it's the same messages and only stores one message in the queue ??
Thanks
Daniel
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它将一遍又一遍地创建相同的消息。
It will create the same message over and over again.
2011 年 9 月 21 日接受的答案是不正确的,至少在使用 FIFO 队列时是这样。 (Fifo 队列在 2011 年不可用。)
Fifo 队列支持基于内容的重复数据删除和发送者管理的重复数据删除。在任何一种情况下,当发送重复消息时,发送都会被接受,但不会在队列中创建新消息。这适用于 5 分钟重复数据删除窗口内的重复项。
请参阅 https://docs.aws.amazon.com /AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagesededuplicationid-property.html
The accepted answer from Sep 21 '11 is incorrect, at least when FIFO queues are used. (Fifo queues were not available in 2011.)
Fifo queues support both content-based deduplication, and sender-managed deduplication. In either case, when a duplicate message is sent, the send is accepted, but no new message is created on the queue. This applies to duplicates within the 5-minute deduplication window.
See https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/using-messagededuplicationid-property.html