我们可以在AWS SQS FIFO队列中更新消息吗? [英] Can we update messages in AWS SQS FIFO Queue?

查看:172
本文介绍了我们可以在AWS SQS FIFO队列中更新消息吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以向AWS SQS Queue发送消息或从AWS SQS Queue接收消息,但是我们可以更新SQS Queue中已经存在的消息内容吗?如果可能的话,怎么办?

We can send/receive messages to/from AWS SQS Queue, But Can we update message content which is already in SQS Queue ? If possible , How ?

推荐答案

一旦消息已发送到SQS队列(标准或FIFO),则该消息是不可变的.此外,不可能通过其ID向SQS询问特定消息.

Once a message has been sent to an SQS queue (standard or FIFO), the message is immutable. Additionally, it isn't possible to ask SQS for a specific message by its ID.

该消息在被消费者接收之前基本上是不可访问的.

The message is essentially inaccessible until received by a consumer.

(在AWS控制台中查看消息似乎是一个例外,但并非如此-控制台充当使用者,接收消息,然后重置其可见性超时,以便它们返回队列以进行后续重新发送. )

(Viewing messages in the AWS console might seem to be an exception, but it isn't -- the console acts as a consumer, receives messages, and then resets their visibility timeout so they return to the queue for subsequent redelivery.)

这篇关于我们可以在AWS SQS FIFO队列中更新消息吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆