- To group messages with the same ID together.
- To filter messages based on their content.
- To assign a unique identifier to each message.
- To ensure that messages with the same ID are only delivered once.