Compare delivery, acknowledgement, replay and failure boundaries in Redis Streams, RabbitMQ and Kafka.
Scope and conventions
Redis Streams (Redis 6.2+ for XAUTOCLAIM), RabbitMQ AMQP 0-9-1 queues (quorum-specific behavior is named), and Kafka 4.4 standard consumer groups. These are related purposes, not interchangeable delivery guarantees. Text blocks describe protocol/configuration or application decisions, not invented SDK APIs. CLI examples require your own brokers and their installed tools.
XADD returns an entry ID after the server appends it. That reply is not proof of consumer processing or of a particular disk/replica durability policy.
Protocol / decision sketch
Sequence or decision sketch; not executable code.
Redis Streams · Interpret successful publication at the right boundary
Follow appearance
✓GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
XADD jobs * event_id evt-42 type invoice.createdreply: generated stream entry ID
Retention in memory is not a durability policy. Configure AOF/RDB and replication/failover expectations explicitly; acknowledgement, replica receipt and fsync are different boundaries.
Protocol / decision sketch
Sequence or decision sketch; not executable code.
Redis Streams · Name the persistence and replication policy
Follow appearance
✓GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
append result + persistence settings + failover policy→ state the failure window you accept
A named consumer belongs to a group and owns pending entries assigned to it. Reusing identities across simultaneously running workers makes ownership and recovery harder to interpret.
Protocol / decision sketch
Sequence or decision sketch; not executable code.
Redis Streams · Keep worker identity separate from shared progress
XGROUP CREATE with 0 starts before retained history; $ starts at the current end. In XREADGROUP, > asks for entries not yet delivered to a group consumer; reading pending history is a different operation.
Protocol / decision sketch
Sequence or decision sketch; not executable code.
Redis Streams · Choose a starting position deliberately
Follow appearance
✓GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
group creation: 0 = retained history; $ = current endgroup read: > = new group deliveries
XACK removes an entry from the group’s pending list, not the stream itself. Send it after the effect you own is committed; doing it before processing can lose recoverable work.
Protocol / decision sketch
Sequence or decision sketch; not executable code.
Redis Streams · Acknowledge only completed responsibility
Follow appearance
✓GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
process and commit effect → XACK jobs workers ENTRY_ID
COUNT limits a read result, not the total pending list or total handler concurrency. A BLOCK value bounds the read wait; the application still owns queue capacity and processing limits.
Protocol / decision sketch
Redis command syntax. In a shell, quote the > argument; it is not shell output redirection.
Redis Streams · Bound both fetched work and active handlers
Follow appearance
✓GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
XREADGROUP GROUP workers worker-1 COUNT 10 BLOCK 1000 STREAMS jobs >