ServiceBus SqlRuleFilter creating filtered and unfiltered subscription. Unexpected subscription created. #5195
Unanswered
rossbuggins
asked this question in
Q&A
Replies: 1 comment 1 reply
-
https://masstransit.io/documentation/configuration#receive-endpoints Specifically, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are looking at how SqlRuleFilters work for Azure Service Bus, when we run the below we see a "filtered" subscription and a non filtered subscription being automatically created.
Currently we have:
This is creating 2 subscriptions on the topic. The first is called
devsub1
(which has the sql rule filter set - as expected), but it also created a subscription calleddev-queue
(which we were not expecting to be created) which has the default filter of allow everything.This means the queue (
dev-queue
) gets data from both subscriptions.If we remove
queueOptions.ConfigureConsumer<HelloWorldEventDevFilterListener>(context, consumerOptions=> { });
the subscriptiondev-queue
is not created, however, we then don't have anything linked to our HelloWorldEventDevFilterListener in dotnet.Think we are just missing a nuance of how to configure this up properly with custom endpoints / consumers... Could anyone point us in the right direction please?
Cheers, Ross
Beta Was this translation helpful? Give feedback.
All reactions