Skip to content

Clarification on docs around max.poll.interval.ms #3808

Answered by edenhill
rognorak asked this question in Q&A
Discussion options

You must be logged in to vote

You are fine with enable.auto.commit=false, nothing will be automatically committed.

But enable.auto.offset.store=false and enable.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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rognorak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants