Is there option to create backup queue

Options
Yogi
Yogi Member Posts: 24
edited December 2021 in General Discussions #1

Good afternoon All,

In solace can we create backup queue ???
If yes how? Please help me with steps.

Requirment is if message is coming on Q1 which is having 1 subscriber to it.
There is another Q2 on which same msg should come (backup of Q1) but with zero subscriber.
How to do it?
Kindly suggest.

Thank you in advance!!

Answers

  • uherbst
    uherbst Member, Employee Posts: 121 Solace Employee
    Options

    Hi @Yogi,
    I don't fully understand your use case, but the answer to the described requirement is easy:
    Just create Q2 and add same subscriptions to Q2 as to Q1. Then all messages going to Q1 are copied to Q2.

    BUT:
    What do you want to do with messages in Q2 ? They pile up in that queue and finally Q2 is full....

    Options you have:

    • delete or consume manually
    • Add a TTL to Q2 (so messages in Q2 are deleted automatically after an amount of time)

    Uli

  • amackenzie
    amackenzie Member, Employee Posts: 260 Solace Employee
    Options

    Just to be clear, you are publishing to a topic not a queue where q1 and q2 each are subscribed to that topic.
    Publishing to topics is generally the best practice as it easily enables use cases like this.

  • Tamimi
    Tamimi Member, Administrator, Employee Posts: 493 admin
    Options

    And to better understand adding topic subscriptions to queues, you can check out this https://docs.solace.com/Solace-PubSub-Messaging-APIs/API-Developer-Guide/Adding-Topic-Subscriptio.htm