Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Service Bus for Windows server - subscriptions with a large number of filters (100+)

$
0
0

I have a set of classes to be subscribed to messages from service bus topic. All of that classes wants to receive only certain message types, for example:

public class MySubscriber : IBusSubscriber, IConsume<ItemCreated>, IConsume<ItemUpdated> {  public void Consume(ItemCreated message) { /* processing */ }  public void Consume(ItemUpdated message) { /* processing */ }
}

For each of subscriber classes I create subscription with set of rules to filter messages. To MySubscriber it would be subscription named MySubscriber and two rules with SqlFilters inside:

"MessageType = 'ItemCreated'""MessageType = 'ItemUpdated'"

I fill MessageType as message property on publishing and it's working fine. But if amount of such rules became to growth (for example one of report subscribers require about 130 rules) it becomesvery slow. Even without lots of messages, only one such report subscriber receives only about 1 message per second.

Can it be speed up somehow? Or maybe there is another way to implement it that avoids creating so many filters?



Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>