Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peek/Message count/Get message #31

Open
ghost opened this issue Jan 20, 2021 · 3 comments
Open

Peek/Message count/Get message #31

ghost opened this issue Jan 20, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 20, 2021

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?

@niemyjski
Copy link
Member

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.

@ghost
Copy link
Author

ghost commented Jan 20, 2021

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:

  1. Getting the oldest queued message date/time (The question about message count/get date)
  2. Make sure a guid that is in the message is a valid Entity guid, before processing it (The one about peeking)

@ejsmith
Copy link
Contributor

ejsmith commented Jan 27, 2021

@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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants