From the course: Apache Kafka Essential Training: Building Scalable Applications (2021)

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Committing messages

Committing messages

- [Instructor] Let's explore the options available on the consumer side for committing Kafka messages in this video. By default, consumers are configured to auto commit messages on receipt. When a message is committed by a consumer in a consumer group, Kafka marks that this message has been delivered to this consumer group and does not send the message again to a consumer in the same consumer group. It is controlled by two parameters. The enable.auto.commit parameter determines if it is automatically committed on receipt or the consumer needs to manually commit. By default, this is set to true. Also the auto.commit.interval.ms parameter, determines the interval at which the consumer auto commits messages. The default is 5,000 milliseconds. This means the consumer auto commit messages received every five seconds. If the consumer commits on receiving messages, it does not guarantee that the consumer has successfully…

Contents