Updated on 2022-09-05 GMT+08:00

Creating a Consumer Group

Scenario

A consumer group must be created in order to retrieve messages. A maximum of three consumer groups can be created in each queue.

Messages in a queue are retrievable to all consumer groups created in that queue.

Prerequisites

A queue has been created.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region.

    Select the same region as your application service.

  3. Click Service List, and choose Application > Distributed Message Service to open the DMS console.
  4. In the navigation pane, choose Queue Manager.
  5. Open the Create Consumer Group dialog box using either of the methods:

    • Method 1

      In the queue list, choose More > Create Consumer Group in the same row as the queue for which you want to create a consumer group.

    • Method 2
      1. Click the name of a queue for which you want to create a consumer group.
      2. On the queue details page, click the Consumer Groups tab.
      3. Click Create Consumer Group.

  6. Specify Consumer Group Name.

    A default consumer group name is generated, which you can change if required. A consumer group name is 1 to 32 characters long. Only letters, digits, underscores (_), and hyphens (-) are allowed. Consumer group names must be unique within their queue.

  7. Click OK.