-
Hi All - For Ref: Id like some clarity around the last part of this comment:
My consumer has: I thought in that configuration, I would be safe from auto-committing? I read Kip-62, and I am still not clear - Is this true, despite that enable.auto.commit is false ? Please clarify, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You are fine with enable.auto.commit=false, nothing will be automatically committed. But The important part, though, is that the default (auto store=true, auto commit=true) is not suitable for long-running message processing since a message may be auto-commmitted prior to processing has completed. |
Beta Was this translation helpful? Give feedback.
You are fine with enable.auto.commit=false, nothing will be automatically committed.
But
enable.auto.offset.store=false
andenable.auto.commit=true
is usually more convenient; you simply store the offset of the last processed message after processing and the auto-committer will commit it in the background according to its configured interval, as well as on rebalance.The important part, though, is that the default (auto store=true, auto commit=true) is not suitable for long-running message processing since a message may be auto-commmitted prior to processing has completed.