Reference

Queues, events & background jobs

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.

Application boundaries

Redis Streams docs Redis Streams ↗

Make repeated delivery safe at the effect boundary

Redis Streams

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 effect
then: XACK delivery

Treat scheduled execution as a separate requirement

Redis Streams

A stream entry ID/timestamp does not automatically defer execution until a due date. Use a scheduler that owns eligibility, handoff and recovery.

Protocol / decision sketch

Sequence or decision sketch; not executable code.

Redis Streams · Treat scheduled execution as a separate requirement
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
due-time store/scheduler → publish eligible stream work

Define exactly-once claims around the actual state change

Redis Streams

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

Publish after a durable application-owned handoff

Redis Streams

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 event
dispatcher: publish → mark sent, with recovery policy

Give an event identity and a compatible contract

Redis Streams

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
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
event_id=evt-42
type=invoice.created
schema_version=1