What is the difference between Kafka Acknowledgment and Kafka consumer commitSync ()
Both are used for purpose of manual offset management, and hope both works Synchronously.
Please assist
What is the difference between Kafka Acknowledgment and Kafka consumer commitSync ()
Both are used for purpose of manual offset management, and hope both works Synchronously.
Please assist
When using spring-kafka, the Acknowledgment
is an abstraction over the detailed consumer API for committing offsets.
When you call acknowledgement.acknowledge()
; the action depends on configuration. With AckMode.MANUAL
, the commit is queued for the consumer to process later; with MANUAL_IMMEDIATE
, commitSync()
(default, or async, depending on configuration) is called immediately.