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: 19 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: 538 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.