You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It may be worthwhile to have deeper look into the configuration as a whole in v3. I suspect a lot of it has come through organic growth (and perhaps operational bias) but there is generally a lot of repetition when configuring producers and consumers. This is exacerbated when a single queue is used for multiple message types resulting in a single consumer being created with multiple ConsumerSettings.
As an example, I use a local method similar to the one below to ease registration of messages/consumers being processed with shared subscriptions on Azure Service Bus.
Each message that is registered in this way results in a new ConsumerBuilder being constructed even though the topic, subscription name, instance and prefetch count will be identical. In fact, if they were to differ, it would cause an issue with topology creation, etc. IMO it would be better to invert the logic here, such that the queue can be configured before configuring Produce and Consume. The same queue configuration should be used to configure all messages that it will be responsible for (or at least allow for a single instance to be referenced by each cfg => ...).
The current implementation is obviously succinct when each message is consumed by its own queue.
There are also other little niggles that make sense when you read through the code, but are not immediately obvious eg. mbb.AutoStartConsumersEnabled(false) being effective before mbb.AddChild(), but not afterwards.
Activity
zarusz commentedon Aug 3, 2024
So you suggest in v3 we leave the one
DefaultPath()?The
Pathis more encompassing than theTopicorQueuename hence my tendency to leavePathterminology.cc: @EtherZa
W1zzardTPU commentedon Aug 3, 2024
Yeah I would lean slightly towards "Path", too, as it's more neutral and less bus-specific jargon
EtherZa commentedon Aug 3, 2024
It may be worthwhile to have deeper look into the configuration as a whole in v3. I suspect a lot of it has come through organic growth (and perhaps operational bias) but there is generally a lot of repetition when configuring producers and consumers. This is exacerbated when a single queue is used for multiple message types resulting in a single consumer being created with multiple
ConsumerSettings.As an example, I use a local method similar to the one below to ease registration of messages/consumers being processed with shared subscriptions on Azure Service Bus.
Each message that is registered in this way results in a new
ConsumerBuilderbeing constructed even though the topic, subscription name, instance and prefetch count will be identical. In fact, if they were to differ, it would cause an issue with topology creation, etc. IMO it would be better to invert the logic here, such that the queue can be configured before configuringProduceandConsume. The same queue configuration should be used to configure all messages that it will be responsible for (or at least allow for a single instance to be referenced by eachcfg => ...).The current implementation is obviously succinct when each message is consumed by its own queue.
There are also other little niggles that make sense when you read through the code, but are not immediately obvious eg.
mbb.AutoStartConsumersEnabled(false)being effective beforembb.AddChild(), but not afterwards.