I am trying to implement a loop where we will process the a batch of messages in loop, post successful processing we will commit the offset of the message, however for below scenario I am not able to find any tangible input.
Read: 1,2,3,4,5....10 I will process them in loop sequentially, if the message processing succeed then only the offset should be committed.
so imagine 1,2 succeeded but 3 failed, 4,5 success, 7,8 fail... if I only commit the offsets 1,2,4,5 what will happen to uncommitted offsets? 3,7,8...
Any idea will be read back again?