Delayed Message

Last updated: 2020-02-26 20:51:53

PDF

The CMQ message timer allows you to specify an initial invisible period for messages to be added to the queue, called Flight status. For example, if you send a message and set the DelaySeconds parameter to 45, the consumer will not see the message for the first 45 seconds after it enters the queue. The default value for DelaySeconds is 0.

Configuration range for delay messages: When you specify a queue to produce messages, you can configure the QueueDelaySeconds parameter with a value range of 0mur3600 seconds, which means the maximum invisibility period for a message is 1 hour.

** Usage Restrictions: ** The number of messages in flight per queue is limited to 1 million. If more than 1 million messages are in flight in the queue, the newly produced messages are not visible in the queue. This capability is not supported in Topic mode.