Azure Service Bus Topic metric shows incorrect total of Outgoing messages

Mounica Chette 1 Reputation point
2021-08-24T06:23:08.22+00:00

Question Description

I am having a .net core webjob which will be reading messages from an Azure Topic in batches. I have encoutered a weird scenario while observing the metrics of Incoming VS Outgoing messages. Incoming messages was 10k and Outgoing messages were 64k. I have implemented logging to understand , if the webjob is processing the messages multiple times, but surprisingly the webjob was not processing messages more than once. FYI.. we I am using Microsoft.Azure.ServiceBus.Core.MessageReceiver to read messages from azure topic.

Actual Behavior :
Number of Incoming messages is not equal to number of outgoing messages.

Expected Behavior
Number of Incomng messages is equal to number of outgoing messages.
Adding few screen shots of the issue:
I have tested under a load of 10k messages. So our job is processing only 10k messages, but the metrics for outgoing messages is 64k

125814-image.png

125837-image.png

Code

125779-image.png

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
623 questions
Azure AI Metrics Advisor
Azure AI Metrics Advisor
An Azure artificial intelligence analytics service that proactively monitors metrics and diagnoses issues.
82 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.