Skip Navigation LinksAzure Developers Guide > Azure Service Bus > Brokered Messaging > Using Topics and Subscriptions > Filtering Messages

Training Courses

All course material is in English, and courses are delivered in English. Feel free to contact me for further information.

Filtering Messages

So far we have only looked at using topics and subscriptions to broadcast a message to all the subscriptions on a topic. In the store checkout scenario mentioned earlier there was a line of business application that processed orders from customers who had a loyalty card with the store chain. As this application is only interested in processing orders from customers who have a loyalty card it would make sense to have some kind of rule that only routed messages to that application if the order was from a customer with a card.

Routing messages in this way is known as content-based routing.

The Enterprise Integration Patterns website provides a description of the Content-Based Router pattern here.


In order to implement this pattern using topics and subscriptions we need to promote message properties and define rules using filter expressions.

Speaking Engagements