🎄 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

Remi
Remi Member Posts: 1

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.

Tagged:

Answers

  • HariRangarajan
    HariRangarajan Member, Administrator, Employee Posts: 20 admin

    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.

  • Tamimi
    Tamimi Member, Administrator, Employee Posts: 541 admin

    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.