Reputation: 348
There seems to be a significant discrepancy between Microsoft.WindowsAzure.Storage.Queue.CloudQueue.ApproximateMessageCount property value and what is shown in the Azure Storage Queue UI in the Azure Portal (portal.azure.com).
The CloudQueue property indicates there are many hundred messages in the queue, while the UI shows either zero or a handful.
How approximate is the ApproximateMessageCount the SDK exposes? Is it possible that high ingress/egress would account for such a large difference?
Upvotes: 0
Views: 519
Reputation: 71119
Not sure what the portal is showing you, but the call to ApproximateMessageCount
is going to return the (fairly close) current count of all messages in the queue at that time (including invisible messages).
If your app is rapidly inserting or ingesting queue messages, this number cannot really be pinned down exactly (which is why it's approximate).
It's entirely possible that the portal isn't refreshing very often. IIRC there's a 'refresh' button on the queue view in the portal.
Upvotes: 1