Redis › Streams
How do you acknowledge that a message read from a consumer group has been successfully processed?
IntermediateAnswer
You use the XACK command, specifying the stream, the consumer group, and the specific message id, which marks that message as successfully processed for that group, removing it from the group's pending entries list, letting Redis know it does not need to be redelivered to another consumer if something goes wrong.
XACK orders processing_group 1725800000-0Real-world example A worker processing an order event calls XACK immediately after successfully completing its work, confirming to Redis that this specific message does not need to be redelivered to another worker in the group.