Regardless of whether messages are consumed or fail to be consumed in ApsaraMQ for RabbitMQ, messages can be retained for a maximum of three days.

For more information about the limits of ApsaraMQ for RabbitMQ, see Limits.