Creating a Kafka Consumer Group

A consumer subscribes to a topic. A consumer group consists of one or more consumers. Within a consumer group, each consumer can consume multiple partitions at the same time. Each partition can be consumed by one consumer at a time.

Figure 1 Example consumption

auto.create.groups.enable: a consumer group is automatically created when a consumer attempts to enter a group that does not exist.

Create a consumer group on the console.

Creating a consumer group on the console does not require an instance restart.

Notes and Constraints

Procedure

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

    Select the region where your Kafka instance is located.

  3. Click Service List and choose Application > Distributed Message Service. The Kafka instance list is displayed.
  4. Click the desired Kafka instance to view the instance details.
  5. In the navigation pane, choose Consumer Groups.
  6. Click Create Consumer Group.
  7. Set consumer group parameters by referring to Table 1 and click OK.

    Table 1 Consumer group parameters

    Parameter

    Description

    Consumer Group Name

    Enter 3 to 64 characters, starting with a letter or underscore (_). Use only letters, digits, periods (.), hyphens (-), and underscores (_).

    If a consumer group name starts with a special character, for example, an underscore (_) or a number sign (#), monitoring data cannot be displayed.

    View the new consumer group in the consumer group list.