In the ApsaraMQ for RocketMQ console, you can view the subscriptions between group IDs and topics in real time. This allows you to identify which group IDs subscribe to a topic, and which topics a group ID subscribes to.
Prerequisites
The target group ID must be online.
Subscriptions
In ApsaraMQ for RocketMQ, a group ID represents a group of consumer instances. In most distributed applications, multiple consumer instances are part of a single group ID. A subscription in ApsaraMQ for RocketMQ is primarily defined by a topic and one or more tags. This combination specifies the topic that all consumer instances in a group ID subscribe to and the tags used to filter messages from that topic.
All consumer instances within the same group ID must have identical subscriptions. Otherwise, message consumption behavior can become unpredictable and may lead to message loss. For more information, see Subscription consistency.
View subscriptions by topic
Log on to the ApsaraMQ for RocketMQ console. In the left-side navigation pane, click Instances.
In the top navigation bar, select a region, such as China (Hangzhou). On the Instances page, click the name of the instance that you want to manage.
-
In the navigation pane on the left, click Topics. Then, in the topic list, click the target topic's name.
On the topic details page, the Details of Online Groups section lists all online groups that subscribe to this topic. The table includes the Group ID, Status, Consumption Mode, and Subscription Rules columns. This section displays only online groups.
You can also click any group ID to view its details.
View subscriptions by group ID
Log on to the ApsaraMQ for RocketMQ console. In the left-side navigation pane, click Instances.
In the top navigation bar, select a region, such as China (Hangzhou). On the Instances page, click the name of the instance that you want to manage.
-
In the navigation pane on the left, click Groups. Then, in the group list, click the target group's name.
You can view the subscriptions for this group. On the group details page, the Subscriptions section on the Basic Information tab lists the topics that the group subscribes to and their corresponding subscription rules.
You can also click any topic to view its details.