Help Center> Distributed Message Service> FAQs> Where Does a Newly Created Consumer Group Start Message Retrieval?
Updated on 2023-09-04 GMT+08:00

Where Does a Newly Created Consumer Group Start Message Retrieval?

  • Kafka API
    • When a newly created consumer group starts message retrieval for the first time, it ignores all messages that have already been sent, and only retrieves messages sent after its creation. To set the message retrieval start position to the earliest message, change the default value of auto.offset.reset from latest to earliest in the Consumer configuration on your Kafka client.
    • When the consumer group starts message retrieval for a second time, it retrieves messages starting from the last retrieval position.
    • To start message retrieval from a specific position, reset the retrieval start position on the DMS console as required. The reset takes effect only for the queue of the configured consumer group, and does not affect other consumer groups.
  • RESTful API / TCP API
    • When a consumer group starts message retrieval for the first time, it retrieves messages starting from the earliest in the queue.
    • When the consumer group starts message retrieval for a second time, it retrieves messages starting from the last retrieval position.
    • To start message retrieval from a specific position, reset the retrieval start position on the DMS console as required. The reset takes effect only for the queue of the configured consumer group, and does not affect other consumer groups.