Help Center/ Distributed Message Service for Kafka/ FAQs/ Consumer Groups/ Do I Need to Create Consumer Groups, Producers, and Consumers for Kafka Instances?
Updated on 2024-10-11 GMT+08:00

Do I Need to Create Consumer Groups, Producers, and Consumers for Kafka Instances?

  • When parameter auto.create.groups.enable is set to true, you do not need to create a consumer group, producer, or consumer because they are generated automatically when you use the instance.
  • When parameter auto.create.groups.enable is set to false, you need to create a consumer group, but do not need to create a producer or consumer.

To change the auto.create.groups.enable setting, see Modifying Kafka Instance Configuration Parameters.

For details about producing and consuming messages after connecting to a Kafka instance, see Connecting to Kafka Using the Client (Plaintext Access).