The Log: One Record Everyone Can Replay
A queue empties as it is read, so a note is gone once someone handles it. A log does the opposite: it keeps every record, in order, and lets anyone read back from any point, even a service that starts up next year. That is the idea behind Kafka. Here is the append-only log, offsets and replay, partitions and ordering, and consumer groups.
A from-the-ground-up look at the event log, the idea behind Apache Kafka. A log is append-only and keeps every record for a retention window whether or not anyone has read it, the opposite of a queue that empties. Each record has an offset, and every reader keeps its own offset, so a new service can replay from the beginning and a service that was down can catch up from where it left off. Partitions split the log so many producers and consumers work at once while order is kept within a partition, and consumer groups either split the work or each receive a full copy. Everyday analogies, a hand-drawn diagram, a visualizer per idea, and what Kafka really does.
- System Design
