Skip to content

Commit d60de77

Browse files
authored
Update acknowledgment process explanation for Redis Streams (#2415)
Clarified the message acknowledgment process for Redis Streams, emphasizing the challenges of coordinating entry deletion across multiple consumer groups.
1 parent 9bf9bf8 commit d60de77

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

content/develop/data-types/streams.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -685,9 +685,7 @@ When there are failures, it is normal that messages will be delivered multiple t
685685

686686
Redis Streams can be associated with multiple consumer groups, where each entry is delivered to all the stream's consumer groups. Within each consumer group, consumers handle a portion of the entries collaboratively. This design enables different applications or services to process the same stream data independently.
687687

688-
When a consumer processes a message, it acknowledges it using the [`XACK`]({{< relref "/commands/xack" >}}) command, which removes the entry reference from the Pending Entries List (PEL) of that specific consumer group. However, the entry remains in the stream and in the PELs of other consumer groups until they also acknowledge it.
689-
690-
Traditionally, applications needed to implement complex logic to delete entries from the stream only after all consumer groups had acknowledged them. This coordination was challenging to implement correctly and efficiently.
688+
Traditionally, when a consumer processesed a message, it acknowledged it using the [`XACK`]({{< relref "/commands/xack" >}}) command, which removed the entry reference from the Pending Entries List (PEL) of that specific consumer group. However, the entry remained in the stream and in the PELs of other consumer groups until they also acknowledge it. Applications needed to implement complex logic to delete entries from the stream only after all consumer groups had acknowledged them. This coordination was challenging to implement correctly and efficiently.
691689

692690
### Enhanced deletion control in Redis 8.2
693691

0 commit comments

Comments
 (0)