Show Table of Contents
20.7. 消息分组
20.7.1. 关于消息分组
消息组是一组共享某些特征的消息:
- 消息组里所有消息都按照通用的组 ID 进行分组。这意味着它们可以用通用的组属性来识别。
- 不管队列里有多少客户,消息组里的所有消息都被相同的消费者顺次进行处理和消费。这意味着如果具有唯一组 ID 的消息组被某个消费者打开,它总是由这个消费者来处理。如果消费者关闭了这个消息组,整个消息组都会被指引到队列里的其他消费者。
重要
当需要由单个消费者顺次处理具有某个属性值(如组 ID)的消息时,消息组就尤其有用。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.