Reputation: 973
We have a .NET process where the process is subscribing to the Topic. One of the common observations is that the Time Spent in Queue is large.
Azure Service Bus is running with 2 Messaging Units. The usage of Service Bus is not high, but the messages are not being picked up. The Message Lock duration is 10-30 seconds for different queues.
The .NET code is running on AKS and is using Azure.Messaging.ServiceBus
and the code appears like,
ServiceBusClient client = new ServiceBusClient("connectionString",new ServiceBusClientOptions());
ServiceBusProcessorOptions clientOptions = new ServiceBusProcessorOptions
{
AutoCompleteMessages = false
};
ServiceBusProcessor processor = client.CreateProcessor("topicName", "subscription", clientOptions);
processor.ProcessMessageAsync += ProcessMessageHandler;
processor.ProcessErrorAsync += ProcessErrorHandler;
processor.StartProcessingAsync();
The time spent in queue is too much even if we run multiple pods. What is potential reason for the delay?
Upvotes: 1
Views: 172