从 spring-docs,我可以看到
MANUAL - the message listener is responsible to acknowledge() the Acknowledgment; after which, the same semantics as BATCH are applied.
MANUAL_IMMEDIATE - commit the offset immediately when the Acknowledgment.acknowledge() method is called by the listener.
但是如果监听器提交偏移量到底有什么区别。为
MANUAL
做了哪些额外的步骤模式
最佳答案
MANUAL - 在处理完最后一次轮询的所有结果后,将确认排队并在一个操作中提交偏移量。
MANUAL_IMMEDIATE - 只要在监听器线程上执行 ack,就会立即提交偏移量(同步或异步)。
关于apache-kafka - spring-kafka AckMode中MANUAL和MANUAL_IMMEDIATE有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60932007/