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
- Read batch messages from Kafka.
- Process all the messages.
- If all messages processing succesful - Commit the offset
- 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.
Source: segmentio/kafka-go