1:n behavior using AMQP

Options
triptesh
triptesh Member Posts: 27

Hi, we have multiple instances of application and when we publish a message, all instances should get the message.

we can achieve the same using native soalce api using queue and topic. We create multiple queues and subscribe the same topic to each queue. And each instance of the application consumes from the respective queue. so when we publish a message to the topic, each of the instances get the message.

Can we achieve the same behavior using native AMQP Library ? Or Do we need to do the topic-subscription manually in order to achieve it ?

Tagged:

Best Answer

  • marc
    marc Member, Administrator, Moderator, Employee Posts: 921 admin
    #2 Answer ✓
    Options

    Hi @triptesh,

    Because AMQP is a standard protocol that is middlewhere agnostic it doesn't define a way to use solace specific features such as having queues subscribe to topics. As you suggested you'd have to use our management features (e.g: automated via SEMP, manually via PubSub+ Mgr, etc.) to add the topic subscriptions to the queue.

Answers

  • marc
    marc Member, Administrator, Moderator, Employee Posts: 921 admin
    #3 Answer ✓
    Options

    Hi @triptesh,

    Because AMQP is a standard protocol that is middlewhere agnostic it doesn't define a way to use solace specific features such as having queues subscribe to topics. As you suggested you'd have to use our management features (e.g: automated via SEMP, manually via PubSub+ Mgr, etc.) to add the topic subscriptions to the queue.