Pub/Sub from Queue

kkadir
kkadir Member Posts: 1
edited November 2021 in General Discussions #1

Hello, I'm new to Solace and trying to understand how I can use queues with non-persistent event streaming. I started with a direct messaging pattern which works fine but I have an AMQP producer and as far as I understand, an AMQP message must be pushed to a queue. On the other hand, I have multiple subscribers but consuming data from a non-exclusive queue results in distributing the messages across subscribers which is not why intended to do.

My question is, how can I use this non-exclusive queue as a forward incoming AMQP data as a direct message to all subscribers?

PS: I couldn't select the correct category from the dropdown menu, and apologies that now I cannot change it.

Answers

  • RobO
    RobO Member, Employee Posts: 19 Solace Employee

    @kkadir You will not be able to accomplish that with queues in the manner you are thinking. You can leverage JMS over AMQP and accomplish your goal.

    Take a look at the tutorials here.

    There is a tutorial for how to accomplish Pub/Sub. I think that is what you are looking for. You will be able to publish once and consume multiple times.

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

    Hey @kkadir ! Curious to know if what Rob referenced answers your question?

  • dreamoka
    dreamoka Member Posts: 53 ✭✭✭

    Hey @kkadir I am new to solace. How do I take take advantage of the Solace Topic to Queue Mapping feature?