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.

Model & setup

Redis Streams docs Redis Streams ↗

Choose the retained object and consumer model

Redis Streams

A stream retains ordered entries with IDs. Consumer groups track distribution and pending entries; a group is distinct from the stream’s retained history.

Protocol / decision sketch

Sequence or decision sketch; not executable code.

Redis Streams · Choose the retained object and consumer model
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
stream → retained entries
group → delivery cursor + pending entries

Create an explicitly scoped scratch destination

Redis Streams

This creates an empty stream and a group starting before existing history. Use an owned scratch Redis at port 16379; these commands change its data.

Fragment

Runnable redis-cli command against your own Redis on 127.0.0.1:16379. The group must not already exist.

Redis Streams · Create an explicitly scoped scratch destination
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
redis-cli -p 16379 XGROUP CREATE jobs workers 0 MKSTREAM

Choose competing work or independent subscriptions

Redis Streams

Consumers inside one group share work; separate groups track their own deliveries over retained entries. A reader outside a group can also follow history independently.

Protocol / decision sketch

Sequence or decision sketch; not executable code.

Redis Streams · Choose competing work or independent subscriptions
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
one group, many consumers → competing work
many groups              → independent progress