🎄 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.

Is there option to create backup queue

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: 130 Solace Employee

    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: 269 Solace Employee

    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: 541 admin

    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