Log-based message queues
medium 30 minA log-based queue appends messages to a file and keeps them after they were read.
Where it shows up
The same pattern appears across everyday software.
Change data capture
A connector such as Debezium turns row changes into messages with the primary key as the key. Compacted topics then hold the current row of each key.
Rebuilding a search index
A new index starts at the earliest offset with a new group, catches up, and replaces the old index. Producers do nothing.
Audit trail
Events are kept in the order in which they were written. An auditor reads them without disturbing anyone.
Consumer offsets in Kafka
Kafka stores the committed offsets of groups in an internal compacted topic: the latest offset for each group and partition is what matters.
RabbitMQ streams
A broker known for work queues also offers a log. Consumers read without removing, and can attach at an earlier point.
Amazon Kinesis Data Streams
A managed log. Records are kept for 24 hours by default and up to 365 days, and consumers read from a position in a shard.