Is it possible to query an azure queue to find whether an item is somewhere in a specified queue (based on some key property)?
One of the patterns easily supported by the Azure Service Bus is the 'first-in-first-out' (FIFO) pattern – which isn't supported in the other queue service – Azure Storage Queues. To realise FIFO with the Azure Service Bus is to use sessions.
This count is maintained by Azure Queue service, this is per message count. The DequeueCount element has a value of 1 the first time the message is dequeued. This value is incremented each time the message is subsequently dequeued.
The visibilitytimeout mechanism, supported by Azure Storage Queues, causes the message to become invisible after read for a specified period of time. If the processing unit fails to delete the message in the specified time, the message will reappear on the queue. Then another process can retry the message.
Azure Queues are meant for async message passing, not searching. You should use an Azure Table or SQL Azure DB if you want indexing support.
Azure Queues will only let you peek the next message without dequeuing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With