Questions tagged [azure-servicebus-subscriptions]
182 questions
8
votes
1 answer
Why does RegisterMessageHandler not work for a specific topic name?
I don't understand why the following handler (processMessageAsync) referenced below is not being triggered for a specific topic name but succeeds for other topic names:
subscriptionClient.RegisterMessageHandler(processMessageAsync, msgOptions)
The…

Scott Nimrod
- 11,206
- 11
- 54
- 118
5
votes
2 answers
Event Grid Topic Vs Event Grid System Topic
What's the difference between Event Grid Topic and Event Grid System Topic.
When I select resource type "Event Grid Custom Topic" then Event Grid Topic type is getting created.
but when I use Service Bus Premium->Event Registration . The Event…

Dinesh Tripathi
- 196
- 3
- 17
5
votes
0 answers
MassTransit approach when existing Azure Service Bus topics and security involved
I am implementing a library for publisher and consumers of events to communicate through Azure Service Bus and I thing MassTransit could be a good option.
I am able to work publish multiple events with it, and have several consumers receiving them…

diegosasw
- 13,734
- 16
- 95
- 159
4
votes
1 answer
Azure Service Bus Session FIFO - How Should Consumers Handle Processing Errors?
Please would you suggest how to handle consumer errors in an Azure Service Bus subscription set up to ensure FIFO processing using a session IDs? (See…

Dave Potts
- 1,543
- 2
- 22
- 33
4
votes
3 answers
Getting Message Stats in Azure Service Bus
I am writing a utility to monitor our Azure Service Bus Topics and Subscriptions.
I can get the Topic details, such as name, queued message count and dead-letter message count, but I would like to get the number of messages that have been…

Karl Gjertsen
- 4,690
- 8
- 41
- 64
3
votes
2 answers
In an Azure ServiceBus session enabled subscription why do I receive messages with the same session id on multiple subscriber instances
I have a session enabled subscription on a service bus topic and have four subscription clients running against this subcription.
I publish 10000 messages across 100000 random sessions to the topic and looking at my output I can see multiple…

Gary F
- 360
- 3
- 12
3
votes
1 answer
How to dynamically Configure different "SubscriptionProperties" for Azure ServiceSub Subscription in C#
I'm trying to configure Azure ServiceBus Topic Subscription dynamically(using C#) with all of its properties which we can set up using Azure Portal.
I have tried the below code, but it's giving me an "object reference error" for…

Aryan
- 374
- 1
- 2
- 14
3
votes
2 answers
Timeout exception when peeking a session enabled topic/subscription with no active messages
I am writing some code to monitor our azure servicebus queues and topics, I want to notify if we have old messages. My code works except that, if a subscription does not have any active messages in it, then it will hang for one minute and then throw…

Clint Eastwood
- 165
- 3
- 10
3
votes
1 answer
What is max throughput and message rate a message unit can support in Azure Service Bus
I am trying to do cost calculation for the azure service bus premium tier. I could not found the answer to the following simple questions
What max message rate a single message unit can support
What max throughput(data size/sec) a single message…

vashishth
- 2,751
- 4
- 38
- 68
3
votes
1 answer
About Correlation Filter/SQL Filter in Azure Service Bus
Can we have negative conditions in Correlation filters or we can only use SQL Filters to have -ve conditions on User/System Properties ?
Also, Is it okay to delete and add a new rule as we have the requirement to update the filters (It's Always to…

Phani Thatavarthi
- 41
- 1
- 4
3
votes
2 answers
Azure Service Bus message lock not being renewed?
I built a service to support multiple queue subscriptions in Azure Service Bus, but I'm getting some odd behavior.
My subscription singleton class has a method that looks like this:
public void Subscribe(Func execution,…

Jeremy Holovacs
- 22,480
- 33
- 117
- 254
2
votes
2 answers
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…

Santhosh Simha
- 43
- 6
2
votes
1 answer
'SubscriptionClient' does not contain a definition for 'PeekBatch' and ReceiveBatch
I have a netstandard2.1 application and I am using nuget package "Microsoft.Azure.ServiceBus" Version="4.1.1".
I am creating a azure service bus SubscriptionClient and trying to use PeekBatch and ReceiveBatch, but I am getting below erros, What is…

user584018
- 10,186
- 15
- 74
- 160
2
votes
1 answer
[azureservicebus - How to set MessageId using JMS in Azure Service Bus
Message Id gets overridden when sending message to Azure service bus using Spring JMS. Because of this reason, duplicate detection is not working as expected. I have read JMS documentation where it's been said that JMSMessageId can't be set by…

Manish
- 21
- 2
2
votes
0 answers
Unit test Microsoft.Azure.ServiceBus TopicClient using Moq
I am trying to unit test Microsoft.Azure.ServiceBus(3.3.0) topic and subscription functionality. But I am not interested in testing Microsoft.Azure.ServiceBus classes, but more how mock Send a message to the topic and check if that message exists on…

kerpekri
- 346
- 7
- 19