🎄 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.
Replay feature in solace pub sub
I am Explorign the replay fetaure in solace pubsub+. when replay is enabled on a VPN we have two queues created.#REPLAY_LOG_ReplayName and #REPLAY_TOPICS_ReplayName. the messages are spooled to REPLAY_LOG and the when i replay the messages are coming from that log. what is the use of REPLAY_TOPICS? where do we use them?
I tried replay from Queue endpoints and messages are gettin replayed. Can we configure a replay on a topic instead of whole VPN? to avoid storage limitations.
Also i need help on replay of topic endpoints?
Answers
-
Hi @dhanarupa, #REPLAY_LOG.. and #REPLAY_TOPICS... are internal queues used for managing the replay log. Which log is used for what purpose is abstracted away by the replay API, so in actuality you never use either directly.
The question of how topics fit in to replay is a good one. Replay happens on a queue. However, a queue can subscribe to a topic. Let's imagine that you have a queue subscribed to a/queued/topic. You have 2 producers, one producing to a/queued/topic and one to a/not/queued/but/still/persisted/topic. You can replay messages on your queue, which will give you messages produced on a/queued/topic.
Now imagine you need the messages on a/not/queued/but/still/persisted/topic to be replayed. All you have to do is create a queue and place a subscription to this topic on it, hit replay, and viola - even though you never subscribed to this topic originally, you can replay the messages from it. You could even change the subscription on the original queue and get the same result. Magic!
For this reason, replay is enabled at the VPN level, not at the topic level. To configure how much storage will be used, set the max-spool-usage on the replay log. If you want to only store messages from a certain topic, what you could do is disable replay on the current VPN and VPN bridge those topics to another VPN where you have replay enabled.
Replay should work on Durable Topic Endpoints.3 -
Hi @dhanarupa,
If you want to see a simple way to test out replay @Aaron created this youtube video that might help.
https://youtu.be/BhGdU2EwfJs?t=234
Hope that helps!
-Marc1 -
Thanks Aron & Marc it was helpful.
/#REPLAY_LOG.. and #REPLAY_TOPICS... are internal queues, but when does the #REPALYTOPICS is used? I could see that when replay is enabled on VPN, the published messages are getting spooled to REPLAY_LOG, and nothing is happening with #REPLAY_TOPICS, what happens with #REPLAY_TOPICS?Why is #REPLAY_TOPICS created?
i understood the replay from Queues, but i could not do the replay from TopicEndpoint. do we have any example showing how to reply from TOPICENDPOINTS.
I was working on Queues in my implementation , never worked on TopicEndpoints, really do not know how to create and publish message to them, any example on that will be helpful.0