Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Service Bus Topic Subscription - Filter on JSON-encoded message body property

If the body of a BrokeredMessage is JSON text, is it possible to setup a Topic Subscription with a filter on properties within that JSON?

like image 459
JoeBrockhaus Avatar asked Jan 13 '16 22:01

JoeBrockhaus


People also ask

How do I filter messages in Service Bus Explorer?

Configure the filter for the ServiceBus subscription You can set the “Default Filter” when you create a new subscription in Azure ServiceBus Explorer. If you want to change an existing filter, expand the subscription, expand the rules, delete the existing $Default rule and add a new one with your filter expression.

What is correlation filter in Azure Service Bus?

Correlation Filters - A CorrelationFilter holds a set of conditions that are matched against one or more of an arriving message's user and system properties. A common use is to match against the CorrelationId property, but the application can also choose to match against the following properties: ContentType. Label.

What is the difference between Azure Service Bus queue and Topic?

A queue allows processing of a message by a single consumer. In contrast to queues, topics and subscriptions provide a one-to-many form of communication in a publish and subscribe pattern. It's useful for scaling to large numbers of recipients.


1 Answers

You could promote those properties with their value into custom properties and use a SqlFilter with user scoping.

like image 155
Sean Feldman Avatar answered Nov 15 '22 08:11

Sean Feldman