Skip to content

Commit 29b58db

Browse files
memew1seods
andauthored
Fix manual commit documentation page is misleading (#1071)
* Fix manual commit documentation page is misleading * Update docs/examples/manual_commit.rst Co-authored-by: Denis Otkidach <[email protected]> --------- Co-authored-by: Denis Otkidach <[email protected]>
1 parent 49a5573 commit 29b58db

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/examples/manual_commit.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Manual commit
22
=============
33

4-
When processing more sensitive data ``enable_auto_commit=False`` mode of
5-
Consumer can lead to data loss in cases of critical failure. To avoid it we
6-
can commit offsets manually after they were processed. Note, that this is a
7-
tradeoff from *at most once* to *at least once* delivery, to achieve
8-
*exactly once* you will need to save offsets in the destination database and
9-
validate those yourself.
4+
When processing sensitive data, using ``enable_auto_commit=True`` (default) for the
5+
Consumer can lead to data loss in the event of a critical failure. To avoid
6+
this, set ``enable_auto_commit=False`` and commit offsets manually only after
7+
messages have been processed. Note, that this is a tradeoff from *at most once*
8+
to *at least once* delivery, to achieve *exactly once* you will need to save
9+
offsets in the destination database and validate those yourself.
1010

1111
More on message delivery: https://kafka.apache.org/documentation.html#semantics
1212

0 commit comments

Comments
 (0)