Get Oldest Message in the Azure Service Bus Subscription

0 votes
Is there a method to get the oldest queued message in a subscription without having to go through all of the messages and use getEnqueuedTimeUTC? The difficulty with this strategy is that if you don't finish the message, it will return to the top of the queue. In essence, I'll be stuck in an endless circle.

What is the best way to locate the oldest message in my subscription?
Mar 16, 2022 in Azure by Edureka
• 13,620 points
477 views

1 answer to this question.

0 votes
The first message enqueued will be the first to be processed (if it was not previously scheduled). Peeking the queue with the PeekAsync() function of the queue or subscription clients will provide you information about the message, including the time it was enqueued.
answered Mar 26, 2022 by Edureka
• 12,690 points

Related Questions In Azure

0 votes
1 answer
0 votes
1 answer

What is the difference between "Azure Web app" and "Azure App Service"?

Azure App Services Azure App Services is a ...READ MORE

answered Mar 8, 2022 in Azure by Edureka
• 13,620 points

edited Jun 27, 2023 by Khan Sarfaraz 2,256 views
0 votes
1 answer

How to create a service connection for Azure in Azure Devops (with pictures)

to create a service connection for Azure ...READ MORE

answered Mar 29, 2022 in Azure by Edureka
• 12,690 points

edited Jul 4, 2023 by Khan Sarfaraz 8,268 views
0 votes
1 answer

How to get the percentage of the predicted labels in Azure Custom Vision?

It's calculated in the same way, except ...READ MORE

answered Mar 26, 2022 in Azure by Edureka
• 12,690 points
325 views
0 votes
1 answer

Azure Pricing Calculator for Hours in Cloud Service

The best method to understand Cloud Service ...READ MORE

answered Mar 29, 2022 in Azure by Edureka
• 12,690 points
486 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP