In our usecase, we are supposed to acknowledge every kafka message/record as soon as it is processed successfully by KafkaListener
. I think that this can be achieved using AckMode.RECORD
as well as AckMode.MANUAL_IMMEDIATE
(as long as we ack on the same listener thread, which we are).
Which ackmode is better suited for this use case?