Stefano Ricciardi
Stefano Ricciardi

Reputation: 2973

Azure Service Bus: ignoring messages sent by me

I have a series of software agents installed on various machines communicating via Azure Service Bus. Each agent may be both a publisher and subscriber.

Is there any built in mechanism in Azure Service Bus for a sender not to receive the messages back from the bus (e.g. some sort of 'echo cancellation')?

Example: if A, B, and C are the agents, what I would like to achieve is that a message sent by A is delivered to B and C without the loopback to A.

I guess I could get by with filters, but I am wondering whether there's something simpler built-in in the service.

Upvotes: 1

Views: 508

Answers (1)

Sandrino Di Mattia
Sandrino Di Mattia

Reputation: 24895

Except for the issuer name (which could be the same for all your agents) the Service Bus can't know that there is a releationship between the publisher and the subscriber (ie: that they're the same agent).

That's why I think Filters are the easiest way to implement what you're trying to do. And Filters are already very simple/easy to work with, no?

Upvotes: 1

Related Questions