简体   繁体   English

服务总线一个订户,多个死信主题订户

[英]Service bus one subscriber for multiple dead-letter topic subscribers

Is it possible for topics to have one subscriber for dead letters which themselves are being generated from multiple subscribers themselves? 主题是否可能有一个订阅者来处理死信,而死信本身是由多个订阅者自己生成的?

Eg two subscribers to a topic, sub-a and sub-b, if either of them generate a dead-letter, a subscriber "sub-deadletter" should pick it up. 例如,一个主题的两个订阅者,sub-a和sub-b,如果其中一个订阅者生成了死信,则订阅者“ sub-deadletter”应将其选中。 Is this possible? 这可能吗?

The context of all of this is an C# azure function 所有这些的上下文是一个C#天蓝色函数

You can use the ForwardDeadLetteredMessagesTo property of the topic Subscriptions and topic subscription rules to bring you required functionality. 您可以使用主题订阅和主题订阅规则ForwardDeadLetteredMessagesTo属性为您带来所需的功能。

1.You need to set the ForwardDeadLetteredMessagesTo property of each topic subscription to the same Service Bus Topic to which the topic subscriptions belong. 1.您需要将每个主题订阅的ForwardDeadLetteredMessagesTo属性设置为主题订阅所属的同一Service Bus Topic。

2.Create a Topic Subscription rule for the topic subscription that should process your dead-lettered messages, with a correlation filter to receive only the dead-lettered messages. 2.为主题订阅创建一个主题订阅规则,该规则应处理您的死信,并带有一个相关过滤器,以仅接收死信。

A combination of both these features of Azure service Bus Topic Subscriptions should solve your problem. Azure服务总线主题订阅的这两种功能的组合应该可以解决您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM