AWS FIFO将订阅与SNS排队:传递消息组ID [英] AWS FIFO queues subscription with SNS: passing message group id

查看:70
本文介绍了AWS FIFO将订阅与SNS排队:传递消息组ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,所有微服务当前都正在通过AWS FIFO队列进行通信.

In my application all the microservices are currently communicating via AWS FIFO queues.

我目前正在尝试使所有这些队列都订阅具有某种过滤条件的SNS主题.

I am currently trying to make all those queues subscribing an SNS topic with some filtering condition.

在最近(直到三月),AWS文档曾经提到与SNS的一些兼容性问题.但是,今天,此提及已从文档中删除:

In the recent past (until March) the AWS documentation used to mention some compatibility issue with SNS. However, today this mention has been removed from the doc:

https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues.html#FIFO-compatibility

我的问题是如何设置我的SNS以将一个SNS消息属性作为FIFO SQS消息组ID传递.

My question is how to set up my SNS to pass one SNS message attribute as FIFO SQS message group id.

您有任何线索/提示吗?

Do you have any clue/hint?

谢谢

更新:

正如我在原始问题中提到的那样,最近根据文档(请参见上文)和常见问题解答(请参见下文)支持FIFO队列SNS订阅:

As I mentioned in the original question, FIFO queues SNS subscription has been recently supported according to the doc (see above) and to the FAQ (see below):

问:Q:哪些AWS或外部服务是Amazon SQS FIFO队列兼容吗?

Q: With which AWS or external services are Amazon SQS FIFO queues compatible?

一些将通知发送到Amazon SQS的AWS或外部服务尽管允许您进行设置,但可能与FIFO队列不兼容FIFO队列作为目标.

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.

AWS服务的以下功能当前不兼容带有FIFO队列:

The following features of AWS services aren't currently compatible with FIFO queues:

Auto Scaling生命周期与AWS IoT规则动作挂钩AWS Lambda已死信件队列

Auto Scaling Lifecycle Hooks AWS IoT Rule Actions AWS Lambda Dead Letter Queues

有关其他服务与FIFO兼容性的信息队列,请参阅服务文档.

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个月前才起作用.

If you just Google it, you will find several articles and forum claiming that this did not work until ~6 months ago.

推荐答案

根据AWS文章

According to the AWS article Tutorial: Subscribing an Amazon SQS Queue to an Amazon SNS Topic see the following:

注意:

Amazon SNS当前与FIFO队列不兼容.

Amazon SNS isn't currently compatible with FIFO queues.

另请参阅AWS论坛帖子 FIFO队列订阅了SNS主题.

Also see the AWS Forum post FIFO queue subscribes to a SNS topic.

这篇关于AWS FIFO将订阅与SNS排队:传递消息组ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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