Creating a RocketMQ Consumer Group
A consumer group is a group of consumers with the same behavior and is used to manage and maintain message retrieval. A consumer can manage a type of messages using a consumer group.
If no consumer group is created, RocketMQ automatically creates one.
Notes and Constraints
Consumer group names cannot be used across instances. For example, Group01 created in instance A cannot be used in instance B.
Prerequisite
A RocketMQ instance has been purchased.
Creating a RocketMQ Consumer Group
- Log in to the RocketMQ console.
- Click a RocketMQ instance name to go to the instance overview page.
- In the navigation pane, choose Instance > Consumer Groups.
- Click Create Consumer Group.
- Configure the consumer group name and other parameters by referring to Table 1.
- Click OK.
When a consumer group is created, Consumer Group Status and Consumption Mode are displayed in the consumer group list (only for v4.8.0).
- Consumer Group Status can be Online or Offline.
- Consumption Mode can be:
- CLUSTERING: cluster consumption mode. Each message is processed by only one consumer within the group.
- BROADCASTING: broadcast consumption mode. RocketMQ pushes each message to all consumers in the consumer group to ensure that the message is consumed at least once by each consumer.
Consumption Mode is -- when the consumer group is offline.
Related Documents
- To create a consumer group by calling an API, see Creating a Consumer Group or Batch Deleting Consumer Groups.
- To create multiple users and assign different consumer group permissions to them, enable ACL and configure users. For details, see Enabling RocketMQ ACL and Configuring RocketMQ ACL Users.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.