Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the main difference between SQL filter and correlation filter in Azure Service Bus

As explained in MSDN (https://learn.microsoft.com/en-us/azure/service-bus-messaging/topic-filters) SQL Filter and Correlation Filter both uses message's system defined and user defined properties.

Can you please provide an example to show the difference among both?

like image 764
Santhosh Simha Avatar asked Nov 03 '25 10:11

Santhosh Simha


1 Answers

I have a blog post where all three filter types are explained

  1. Boolean filters
  2. Correlation filters
  3. SQL filters

There are several differences between correlation and SQL filters. Just to list a few

  • Within a correlation filter, multiple conditions are AND-ed. SQL filter is much more flexible and can use AND as well as OR operations.
  • The cost of evaluating filter expression is minimal and almost immediate w/o extra compute required. SQL filters can require more compute but offer more flexibility.
like image 156
Sean Feldman Avatar answered Nov 05 '25 01:11

Sean Feldman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!