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.
A stream ID identifies a transport entry; an application event ID can identify the same logical event across republishes. Atomically record deduplication with a local database effect when possible.
Protocol / decision sketch
Sequence or decision sketch; not executable code.
Redis Streams · Make repeated delivery safe at the effect boundary
Follow appearance
✓GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
transaction: claim event_id if new + apply database effectthen: XACK delivery
XACK and a remote database/API write are separate operations unless your application constructs a shared atomic boundary. Use database transactions, deduplication or remote idempotency as appropriate.
Protocol / decision sketch
Sequence or decision sketch; not executable code.
Redis Streams · Define exactly-once claims around the actual state change
Follow appearance
✓GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
external effect commits → crash before XACK→ effect must tolerate redelivery
An outbox can commit a database change and publish intent in one local transaction. A dispatcher retries XADD; duplicate publication remains possible and needs event identity.
Protocol / decision sketch
Sequence or decision sketch; not executable code.
Redis Streams · Publish after a durable application-owned handoff
Follow appearance
✓GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
database transaction: business write + outbox eventdispatcher: publish → mark sent, with recovery policy
Stream field/value pairs still need an application schema. Keep an event ID, event type and version/compatibility policy; a stream entry ID is a transport identity.
Protocol / decision sketch
Sequence or decision sketch; not executable code.
Redis Streams · Give an event identity and a compatible contract