SNS 消息是否分散到 SQS 队列以保持顺序?
Are SNS messages fanned out to SQS queues keeping the order?
SNS 的 AWS 常见问题解答说:
Q: Will messages be delivered to me in the exact order they were published?
The Amazon SNS service will attempt to deliver messages from the
publisher in the order they were published into the topic. However,
network issues could potentially result in out-of-order messages at
the subscriber end.
它是否适用于 SQS 消费者,特别是 FIFO SQS?我有一个用例,其中一位消费者需要维护消息发送的顺序。如果不是这种情况,我将需要使用其他东西。
Amazon SNS 目前不支持将消息传送到 SQS FIFO 队列。这已记录在案 here。
Important
Amazon SNS isn't currently compatible with FIFO queues.
因此,由于 SNS 不保证顺序,而常规 SQS 队列不保证顺序,
使用 SNS 将消息扇出到 SQS 时,您无法保证消息传递顺序。
从昨天开始,SNS 还支持使用 FIFO 主题的严格消息排序和重复数据删除。
SNS 的 AWS 常见问题解答说:
Q: Will messages be delivered to me in the exact order they were published?
The Amazon SNS service will attempt to deliver messages from the publisher in the order they were published into the topic. However, network issues could potentially result in out-of-order messages at the subscriber end.
它是否适用于 SQS 消费者,特别是 FIFO SQS?我有一个用例,其中一位消费者需要维护消息发送的顺序。如果不是这种情况,我将需要使用其他东西。
Amazon SNS 目前不支持将消息传送到 SQS FIFO 队列。这已记录在案 here。
Important
Amazon SNS isn't currently compatible with FIFO queues.
因此,由于 SNS 不保证顺序,而常规 SQS 队列不保证顺序, 使用 SNS 将消息扇出到 SQS 时,您无法保证消息传递顺序。
从昨天开始,SNS 还支持使用 FIFO 主题的严格消息排序和重复数据删除。