A consumer tag is an identifier of a consumer client. Message Queue for RabbitMQ allows you to view consumer tags of online consumer clients. You can view the consumer tags of a queue to learn the online consumer clients that have subscribed to the queue.

Prerequisites

  1. Activate Message Queue for RabbitMQ
  2. Create resources
  3. Use an SDK to send and receive messages
    Notice Message Queue for RabbitMQ allows you to view consumer tags of only online consumer clients.

Background information

A consumer tag is an identifier of a consumer client. You can specify the consumer tag on a Message Queue for RabbitMQ consumer client. If you do not specify the consumer tag on a Message Queue for RabbitMQ consumer client, the Message Queue for RabbitMQ broker automatically generates a consumer tag.
Notice
  • A consumer tag must be unique. This means that a consumer tag used by a consumer client cannot be used by another consumer client at the same time.
  • A consumer tag is valid in only one channel. This means that the consumer tag created in a channel cannot be used in another channel.

Procedure

  1. Log on to the Message Queue for RabbitMQ console.
  2. In the Resource Distribution section of the Overview page, select the region where your instance is located.
  3. On the Instances page, click the name of your instance.
  4. In the left-side navigation pane, click Queues.
  5. On the Queues page, click the drop-down arrow next to vhost. From the Change drop-down list, select the vhost of the queue whose consumer tags you want to view. Find the queue, click More in the Actions column, and then select consumerTags.
  6. On the consumerTags tab of the Queue Details page, view the consumer tags of the queue.