Skip to content

Commit 34e57ed

Browse files
author
Julien Ruaux
committed
docs: Added documentation for stream ack policy
1 parent ba014f0 commit 34e57ed

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

src/docs/asciidoc/_source.adoc

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,28 @@ The {name} includes the following features:
1313
* <<stream-reader,Stream Reader>>
1414

1515
[[source-at-least-once-delivery]]
16-
=== At least once delivery
17-
The {name} guarantees that records from the Kafka topic are delivered at least once.
16+
=== Delivery Guarantees
17+
18+
The {name} can be configured to ack stream messages either automatically (at-most-once delivery) or explicitly (at-least-once delivery).
19+
The default is explicit acks.
20+
21+
==== Explicit Ack (default)
22+
23+
In this mode, each stream message is acknowledged after it has been written to the corresponding topic.
24+
25+
[source,properties]
26+
----
27+
redis.stream.ack=EXPLICIT
28+
----
29+
30+
==== Automatic Ack
31+
32+
In this mode, stream messages are acknowledged as soon as they are read.
33+
34+
[source,properties]
35+
----
36+
redis.stream.ack=AUTO
37+
----
1838

1939
[[source-tasks]]
2040
=== Multiple Tasks

0 commit comments

Comments
 (0)