How to delay sending out messages in Solace PubSub+
You do not want Solace PubSub+ to send out your message to the subscribers right away. Instead, you want it to send out the message until a timestamp is reached.
Download Solace PubSub+ and SDKPerf.
To let PubSub+ delay sending out messages, follow these steps:
- In PubSub+ Manager, select Queues and then click the green + Queue button.
- In the Create Queue dialog box, type the name of the queue you want to create (queue_b for this example) and click Create.
- In the Edit Queue Settings dialog box, enter queue_a as the DMQ Name and the Maximum TTL (sec) value (3600 for this example).
- Repeat Steps 1-3 to create a new queue called queue_b without the DMQ Name and Maximum TTL (sec).
In SDKPerf, run the command below to set the consuming application to consume from Queue A.
sdkperf_java_d34 -cip tcp://192.168.133.47:55555 -cu [email protected]_vpn -sql=queue_a
In SDKPerf, run the command below to set the publishing application to publish to queue_b with the DMQ eligible flag set.
sdkperf_java_d34 -cip tcp://192.168.133.47:55555 -cu [email protected]_vpn -pql=queue_b -mn=10 -mt=persistent -mdq
When you send the message on to queue_b, it will stay there until the TTL expires. Then Solace PubSub+ will move the message to queue_a and deliver it to your publishing application.
Documentation: Setting Dead Message Queues