Skip to content
New issue

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

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

Already on GitHub? # to your account

How to know when a message at mediator was queued? #2057

Open
TimoGlastra opened this issue Oct 10, 2024 · 0 comments
Open

How to know when a message at mediator was queued? #2057

TimoGlastra opened this issue Oct 10, 2024 · 0 comments

Comments

@TimoGlastra
Copy link
Contributor

Let's say I want to handle all cases of when a forward message is received, and I want to split that into two groups:

  • Delivered
  • Queued

What would be the current best way to do that? I think previously we always tried to send the message in the forward message, so we could listen to the MessageSentEvent and look at the status. But now it seems like it's going through the MediatorService and based on the forwarding strategy it will add it to queu/ try to deliver / etc.. But there's no way I've found that I can get the result of how the message was handled.
Thoughts on that, have you tried to solve this?

Basically in our mediator API in Paradym we want to emit a delivered/queued event. Mostly the queued is important because it allows users of Paradym to send push notifications to the wallet

Discussed on WG call: if you use DirectDelivery mode you know it was queued when the message is stored in the message repository. But for other approaches this won't work as the message will always be queued. Maybe this is just something you need to build on top of Credo, e.g. check after 10 seconds if the queued message has been removed from the queue.

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

No branches or pull requests

1 participant