Peek/Message count/Get message
How can you access those?
Can i Peek messages as in AzureStorage?
StartWorkingAsync description says it dequeues the messages, what if i just want to iterate over them?
Hello,
Thanks for reaching out to us. Currently we don't have the ability to peek messages. What is your use cases for dequeueing a message but not doing anything with them? One danger with peeking them is when you have multiple consumers.
Hi, Thanks for the reply.
i am replacing the Microsoft.Azure library with the Foundatio one and have some old code i need to support. I do not want to dequeue a message (sorry if that was not clear), i just want to get some details out of it and leave it in the queue "as is". For example:
- Getting the oldest queued message date/time (The question about message count/get date)
- Make sure a guid that is in the message is a valid Entity guid, before processing it (The one about peeking)
@Rafael-Herscovici we don't currently have the ability to peek the next item in the queue abstraction. That seems like it might be a good feature to add, but we need to be careful because it needs to be implementable on all platforms that we support (Redis, SQS, ServiceBus, etc).