Redis › Streams

How do you acknowledge that a message read from a consumer group has been successfully processed?

Intermediate

Answer

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-0
Real-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.

Common follow-ups: What happens to a message that is never acknowledged?;How do you view the list of currently pending, unacknowledged messages for a consumer group?