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