Umair
Umair

Reputation: 3243

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?

E.g. 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. Is this possible?

The context of all of this is an C# azure function

Upvotes: 0

Views: 180

Answers (1)

Ranjith Eswaran
Ranjith Eswaran

Reputation: 333

You can use the ForwardDeadLetteredMessagesTo property of the topic Subscriptions and topic subscription rules to bring you required functionality.

1.You need to set the ForwardDeadLetteredMessagesTo property of each topic subscription to the same Service Bus Topic to which the topic subscriptions belong.

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.

A combination of both these features of Azure service Bus Topic Subscriptions should solve your problem.

Upvotes: 2

Related Questions