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