In the ApsaraMQ for RocketMQ console, you can view the subscriptions between groups and topics in real time. You can check the groups that subscribe to a topic and the topics to which a group subscribes.

Prerequisites

The group is in the Online state.

What are subscriptions?

In ApsaraMQ for RocketMQ, a group refers to a group of consumer instances. For most distributed applications, multiple consumer instances are attached to a group. In ApsaraMQ for RocketMQ, a subscription consists of a topic-tag pair. Each topic-tag pair includes the topics subscribed to by all consumer instances within a group and the filtering tags of the topics.

The subscriptions of all consumer instances in the same group must be consistent. Otherwise, the message consumption logic is chaotic and message loss may occur. For more information, see Subscription consistency.

View the groups that subscribe to a topic

  1. Log on to the ApsaraMQ for RocketMQ console. In the left-side navigation pane, click Instances.
  2. In the top navigation bar, select a region. Example: China (Hangzhou). Then, click the ID of the instance that you want to manage.
  3. In the left-side navigation pane, click Topics. In the topic list, find the topic that you want to manage and select More > Online Groups in the Actions column.
  4. In the left-side navigation pane, click Topics. In the topic list, find the topic that you want to manage and click More > Online Groups in the Actions column.
    On the Details of Online Groups tab of the page that appears, you can view the groups that subscribe to the topic. The following figure shows an example. topic_sub_detail

    You can also click the ID of a group to view the details of the group.

View the topics to which a group subscribes

  1. Log on to the ApsaraMQ for RocketMQ console. In the left-side navigation pane, click Instances.
  2. In the top navigation bar, select a region. Example: China (Hangzhou). Then, click the ID of the instance that you want to manage.
  3. In the left-side navigation pane, click Groups. On the page that appears, find the group that you want to manage and click the ID of the group.
    You can view the topics to which the group subscribes. The following figure shows an example. Subscriptions

    You can also click a topic to view the details of the topic.