From bdae6b333e042121c172cbacbddb7c29d8a69f29 Mon Sep 17 00:00:00 2001 From: Mark Likhachev Date: Mon, 4 Nov 2024 12:55:05 +0300 Subject: [PATCH] Fix manual commit documentation page is misleading --- docs/examples/manual_commit.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/examples/manual_commit.rst b/docs/examples/manual_commit.rst index 416f5ed5..01378389 100644 --- a/docs/examples/manual_commit.rst +++ b/docs/examples/manual_commit.rst @@ -1,12 +1,12 @@ Manual commit ============= -When processing more sensitive data ``enable_auto_commit=False`` mode of -Consumer can lead to data loss in cases of critical failure. To avoid it we -can commit offsets manually after they were processed. Note, that this is a -tradeoff from *at most once* to *at least once* delivery, to achieve -*exactly once* you will need to save offsets in the destination database and -validate those yourself. +When processing sensitive data, setting ``enable_auto_commit=True`` for the +Consumer can lead to data loss in the event of a critical failure. To avoid +this, set ``enable_auto_commit=False`` and commit offsets manually only after +messages have been processed. Note, that this is a tradeoff from *at most once* +to *at least once* delivery, to achieve *exactly once* you will need to save +offsets in the destination database and validate those yourself. More on message delivery: https://kafka.apache.org/documentation.html#semantics