In the documentation :
BATCH: Commit the offset when all the records returned by the poll() have been processed.
MANUAL: The message listener is responsible to acknowledge() the Acknowledgment. After that, the same semantics as BATCH are applied.
if the offset is committed when all the records returned by the poll() have been processed for both cases then I don't get the difference, can you give me a scenario when MANUAL ack mode is used differently ?
If I use MANUAL mode and I don't call acknowledge()
within my KafkaListener would be the same as BATCH mode ? and if I call acknowledge()
what would change ?
Maybe I don't get the difference between commit and acknowledge notions within spring kafka