Messages in Message Queue for Apache RocketMQ are retained on the broker for up to three days, and the system automatically deletes the unconsumed messages after three days. We recommend that you configure the Alerts service to monitor the consumption status in real time, and intervene manually upon alerts.