AWS FIFO 使用 SNS 排队订阅:传递消息组 ID
AWS FIFO queues subscription with SNS: passing message group id
在我的应用程序中,所有微服务当前都通过 AWS FIFO 队列进行通信。
我目前正在尝试让所有这些队列订阅具有某些过滤条件的 SNS 主题。
最近(直到 3 月)AWS 文档曾提到与 SNS 的一些兼容性问题。然而,今天这个提及已从文档中删除:
我的问题是如何设置我的 SNS 以将一个 SNS 消息属性作为 FIFO SQS 消息组 ID 传递。
你有clue/hint吗?
谢谢
更新:
正如我在原始问题中提到的,根据文档(见上文)和常见问题解答(见下文),最近支持 FIFO 队列 SNS 订阅:
Q: With which AWS or external services are Amazon SQS FIFO queues
compatible?
Some AWS or external services that send notifications to Amazon SQS
might not be compatible with FIFO queues, despite allowing you to set
a FIFO queue as a target.
The following features of AWS services aren't currently compatible
with FIFO queues:
Auto Scaling Lifecycle Hooks AWS IoT Rule Actions AWS Lambda Dead
Letter Queues
For information about compatibility of other services with FIFO
queues, see your service documentation.
https://aws.amazon.com/sqs/faqs/?nc1=f_ls
如果你只是 Google 它,你会发现一些文章和论坛声称这在大约 6 个月前才有效。
根据 AWS 文章 Tutorial: Subscribing an Amazon SQS Queue to an Amazon SNS Topic 请参阅以下内容:
Note:
Amazon SNS isn't currently compatible with FIFO queues.
另请参阅 AWS 论坛 post FIFO queue subscribes to a SNS topic。
我们刚刚发布了 Amazon SNS FIFO 主题。这应该对您的用例有帮助。但是您不能自动将消息属性转换为消息组 ID。您必须独立设置这两个属性。看看吧!
在我的应用程序中,所有微服务当前都通过 AWS FIFO 队列进行通信。
我目前正在尝试让所有这些队列订阅具有某些过滤条件的 SNS 主题。
最近(直到 3 月)AWS 文档曾提到与 SNS 的一些兼容性问题。然而,今天这个提及已从文档中删除:
我的问题是如何设置我的 SNS 以将一个 SNS 消息属性作为 FIFO SQS 消息组 ID 传递。
你有clue/hint吗?
谢谢
更新:
正如我在原始问题中提到的,根据文档(见上文)和常见问题解答(见下文),最近支持 FIFO 队列 SNS 订阅:
Q: With which AWS or external services are Amazon SQS FIFO queues compatible?
Some AWS or external services that send notifications to Amazon SQS might not be compatible with FIFO queues, despite allowing you to set a FIFO queue as a target.
The following features of AWS services aren't currently compatible with FIFO queues:
Auto Scaling Lifecycle Hooks AWS IoT Rule Actions AWS Lambda Dead Letter Queues
For information about compatibility of other services with FIFO queues, see your service documentation.
https://aws.amazon.com/sqs/faqs/?nc1=f_ls
如果你只是 Google 它,你会发现一些文章和论坛声称这在大约 6 个月前才有效。
根据 AWS 文章 Tutorial: Subscribing an Amazon SQS Queue to an Amazon SNS Topic 请参阅以下内容:
Note:
Amazon SNS isn't currently compatible with FIFO queues.
另请参阅 AWS 论坛 post FIFO queue subscribes to a SNS topic。
我们刚刚发布了 Amazon SNS FIFO 主题。这应该对您的用例有帮助。但是您不能自动将消息属性转换为消息组 ID。您必须独立设置这两个属性。看看吧!