🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

Can you use a direct message receiver to consume already-sent messages?

mzs57
mzs57 Member Posts: 1

If someone sends a message to a queue. Can I use a direct message receiver to receive it after it has already been sent? In other words, the listener wasn't running while the message was sent, but I want to see if I can still receive it. I'm doing this in python.

Answers

  • amackenzie
    amackenzie Member, Employee Posts: 269 Solace Employee

    You say the message is in a queue. If that's the case, you certainly can retrieve it later, but not with a direct message receiver. Direct messages are not persisted. If you published a direct message and it was subscribed to by a queue, the message is promoted and is now persistent.

    So you would not use a direct message receiver to consume from the queue, you would use a persistent message reciver.

    There are samples for doing this on Solace.dev