• Distributed Message Service

dms
  1. Help Center
  2. Distributed Message Service
  3. User Guide
  4. Introduction
  5. Message Lifecycle

Message Lifecycle

Figure 1 shows the lifecycle of a message.

Figure 1 Lifecycle of a message
Table 1 Lifecycle of a message

Step

Description

1

The producer sends message M to a queue.

Message M is redundantly distributed to multiple servers.

2

A consumer retrieves message M from the queue.

While message M is being retrieved, it remains in the queue. It cannot be retrieved again within 30s since the start of retrieval. If message M is not acknowledged within this period, it can be retrieved again.

3

Once message M is acknowledged, it can no longer be retrieved by consumers from the same consumer group.

However, it can still be retrieved by consumers from other consumer groups. It remains in the queue for at least 72 hours (unless the queue is deleted) and will be deleted after this period.

NOTE:

If messages are retrieved using APIs, they must then be acknowledged using the ACK API. If messages are retrieved using the DMS console, they are automatically acknowledged.