Kafka - Consumers
To ensure a Kafka consumer commits offsets only after successfully processing a batch of messages, which configuration should be used?
To ensure a Kafka consumer commits offsets only after successfully processing a batch of messages, which configuration should be used?
enable.auto.commit is true, offsets are committed automatically at intervals, which may commit offsets before processing completes.enable.auto.commit to false allows the application to commit offsets manually after processing a batch successfully.auto.offset.reset controls offset reset behavior, max.poll.records controls batch size but not commit behavior, and auto commit with low interval risks premature commits.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions