Recall & Review
beginner
What does the Redis command
XACK do?It acknowledges one or more messages in a Redis stream, marking them as processed so they won't be delivered again to the same consumer group.
Click to reveal answer
beginner
Why is acknowledging messages important in Redis streams?
Acknowledging messages confirms they were processed successfully, preventing them from being redelivered and helping manage message flow reliably.
Click to reveal answer
beginner
What parameters does the
XACK command require?It requires the stream name, the consumer group name, and one or more message IDs to acknowledge.
Click to reveal answer
beginner
If you run
XACK mystream mygroup 1526985058136-0, what happens?The message with ID
1526985058136-0 in the stream mystream is marked as acknowledged for the consumer group mygroup.Click to reveal answer
intermediate
Can
XACK acknowledge multiple messages at once?Yes, you can list multiple message IDs after the stream and group names to acknowledge several messages in one command.
Click to reveal answer
What is the main purpose of the Redis
XACK command?✗ Incorrect
XACK marks messages as processed so they won't be delivered again to the same consumer group.
Which of these is NOT a required parameter for
XACK?✗ Incorrect
XACK needs the stream, group, and message IDs, but not the consumer name.
What happens if you acknowledge a message that was never delivered to your consumer group?
✗ Incorrect
Only messages pending for the group can be acknowledged; others are ignored.
Can
XACK be used to acknowledge messages from multiple streams at once?✗ Incorrect
XACK acknowledges messages only from one stream per command.
What does
XACK return after successful acknowledgment?✗ Incorrect
XACK returns how many messages were acknowledged successfully.
Explain how the
XACK command helps manage message processing in Redis streams.Think about how you tell Redis you finished handling messages.
You got /3 concepts.
Describe the parameters needed for the
XACK command and what each represents.Consider what you need to identify the messages and the group.
You got /3 concepts.