Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent users from enabling auto commit #1290

Merged
merged 3 commits into from
Jul 24, 2024
Merged

Conversation

erikvanoosten
Copy link
Collaborator

@erikvanoosten erikvanoosten commented Jul 22, 2024

Zio-kafka applications always pre-fetch data so that user streams can process the data asynchronously. This is not compatible with auto commit. When auto commit is enabled, the consumer will automatically commit batches before they are processed by the user streams.

An unaware user might accidentally enable auto commit and lose data during rebalances.

Zio-kafka applications get their performance from pre-fetching data. When auto commit is enabled, the consumer will automatically commit batches _before_ they are processed by the user streams.

An unaware user might accidentally enable auto commit and lose data during rebalances.

Solves #1289.
@erikvanoosten erikvanoosten merged commit 092de53 into master Jul 24, 2024
14 checks passed
@erikvanoosten erikvanoosten deleted the no-auto-commit branch July 24, 2024 08:21
@tnielens
Copy link
Contributor

Ok too bad. Thanks for having a look and for the constructor doc warning.

svroonland pushed a commit that referenced this pull request Aug 10, 2024
Zio-kafka applications always pre-fetch data so that user streams can
process the data asynchronously. This is not compatible with auto
commit. When auto commit is enabled, the consumer will automatically
commit batches _before_ they are processed by the user streams.

An unaware user might accidentally enable auto commit and lose data
during rebalances.

Solves #1289.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants