Example 3 – Content-based routing based on message properties

Service Bus message properties come in very handy when working with multiple subscribing systems. In this example, we will show you how easy it is to route a message to different message listener subscribers using user-defined properties.

To work with this use case, we have created a logic app that will receive an HTTP request through a request trigger and post the message to the topic using content data and message properties. The logic app will set the message properties on each published message to the Service Bus topic using a defined key-value JSON string. This will enable the appropriate client application to subscribe to a message based on the filter condition.

To work with ...

Get Serverless Integration Design Patterns with Azure now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.