#123·kafka-go

Way to get batch messages and commit if the batch is successful

Author: sanchitlohia-ovoCreated Oct 12, 2018Updated Jun 16, 2026
Labelsquestion

There is no way to implement the below flow

  1. Read batch messages from Kafka.
  2. Process all the messages.
  3. If all messages processing succesful - Commit the offset
  4. If any of the message processing fails - Do not commit the offset and read the same batch again and try to process the messages and if successful commit the offset.