Explaination of ack modes in spring kafka #2390
Replies: 2 comments 6 replies
-
Yes, as long as you set the The actual commit will take place when the listener returns to the container, so the time is only approximate - if the time has been exceeded after processing the current record. |
Beta Was this translation helpful? Give feedback.
-
Let's say I have a setup like below
In this case, processing the entire batch of 8 records will take about 4 mins. Once @garyrussell Is this expected behavior? I am using |
Beta Was this translation helpful? Give feedback.
-
Ack modes:
https://docs.spring.io/spring-kafka/api/org/springframework/kafka/listener/ContainerProperties.AckMode.html#COUNT_TIME
ackCount - Does it mean the records successfully processed after a poll
ackTime - Does it mean after X seconds to commit records which are successfully processed
I have a requirement is to commit offsets either after 100 records are processed successfully or 3 seconds have elapsed, which ack mode is suitable for this?
Beta Was this translation helpful? Give feedback.
All reactions