Esta página aún no está disponible en su idioma local. Estamos trabajando arduamente para agregar más versiones de idiomas. Gracias por tu apoyo.
- What's New
- Function Overview
- Product Bulletin
- Service Overview
- Getting Started
-
User Guide
- Process of Using RocketMQ
- Creating a User and Granting DMS for RocketMQ Permissions
- Buying a RocketMQ Instance
- Configuring a Topic
- Accessing an Instance
- Managing Messages
- Managing Consumer Groups
-
Managing Instances
- Viewing and Modifying Basic Information of a RocketMQ Instance
- Viewing Background Tasks of a RocketMQ Instance
- Configuring Tags for a RocketMQ Instance
- Exporting RocketMQ Instances
- Diagnosing a RocketMQ Instance
- Restarting Brokers of a RocketMQ Instance
- Deleting a RocketMQ Instance
- Configuring SSL of a RocketMQ Instance
- Modifying RocketMQ Specifications
- Migrating Metadata
- Viewing Monitoring Metrics and Configuring Alarms
- Viewing RocketMQ Audit Logs
- Best Practices
- Developer Guide
- API Reference
- SDK Reference
- FAQs
- Videos
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.
At least one RocketMQ consumer group is automatically created.
Prerequisites
A RocketMQ instance has been purchased.
Creating a RocketMQ Consumer Group
- Log in to the console.
- Click
in the upper left corner to select a region.
NOTE:
Select the region where your RocketMQ instance is located.
- Click
and choose Application > Distributed Message Service for RocketMQ to open the console of DMS for RocketMQ.
- Click a RocketMQ instance to go to the instance details page.
- In the navigation pane, choose Consumer Groups.
- Click Create Consumer Group.
- Configure the consumer group name and other parameters by referring to Table 1.
Table 1 Consumer group parameters Parameter
Description
Consumer Group Name
Name of the consumer group.
A consumer group must meet the following requirements:- Contains 3 to 64 characters.
- Contains only letters, digits, percent signs (%), vertical bars (|), hyphens (-), and underscores (_).
Once the consumer group is created, you cannot modify its name.
Brokers
This parameter is mandatory when the RocketMQ instance version is 4.8.0.
Select one or multiple brokers to create consumer groups as required. The consumer groups are automatically created.
Once the consumer group is created, you cannot modify its brokers.
Maximum Retries
Maximum number of retry attempts allowed for normal messages.
Value range: 1–16
For ordered retrievals, this limit can be configured by using the setMaxReconsumeTimes method.
Broadcast
Indicates whether messages are broadcast.
If this option is enabled, each message is retrieved by all consumers in the consumer group. If this option is disabled, each message is retrieved by only one consumer in the consumer group.
Orderly
This parameter is mandatory when the RocketMQ instance version is 5.x.
If this option is enabled, consumers consume messages in sequence. Orderly consumption ensures sequential consumption by message sending. In this case, earlier messages are consumed before later messages
Description
Description of the consumer group.
0–200 characters
- Click OK.
View Consumption Model on the consumer group list page once a consumer group is created.
- CLUSTERING: cluster consumption mode. RocketMQ consumes any message by any consumer in the consumer group.
- BROADCASTING: broadcast consumption mode. RocketMQ pushes each message to all consumers in the consumer group to ensure that the message is consumed by each consumer.
Consumption Model is -- when the consumer group is offline.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.