Can we update messages in AWS SQS FIFO Queue?

梦想的初衷 提交于 2019-12-10 20:44:00

问题


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 ?


回答1:


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.

(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.)



来源:https://stackoverflow.com/questions/48109303/can-we-update-messages-in-aws-sqs-fifo-queue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!