🎄 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.
Subscription Level Handlers on a Queue
I plan to have a temporary queue subscribed to 2 subscription topics for all my clients. I want to have a different behavior based on from which subscription topic the message came from. It is not possible to have separate queues for each subscription. So I'd like to know if there are any alternatives.
Answers
-
Hi Remi,
Each event that is attracted to a queue using subscriptions has the original name of the topic which it was published to as a part of its properties.
You could use this to implement different consumer behaviour for the events.
Hope this helps.
0 -
Is creating multiple queues an option that is viable to you? If that's the case, you can create 2 different queues each subscribed to the topic of choice. That way, a client bound to the respective queue will have its dedicated logic to handle the messages.
0