Learning paths · Skills · Intermediate

Kafka: the log at the centre of the system

How an append-only, partitioned, replicated log works, what producers and consumer groups really guarantee, what exactly-once does and does not cover, and the operational traps (lag, rebalances, too many partitions) that come with running one.

0 of 12 done

The map

  • Not started
  • In progress
  • Done
  1. 01The logAppend, offset, partition0/2
  2. 02Writing and readingProducers, groups, guarantees0/3
  3. 03Keeping the dataReplicas, retention, controllers0/3
  4. 04Building on itSchemas, tools, operations, choices0/4
  5. 05Next: system designSame ideas, at service scale

Written for Apache Kafka 3.x and 4.x; the links point to the 4.3 documentation (May 2026). The examples were run on Apache Kafka 4.1.0 from the apache/kafka Docker image, on a single-node cluster and on a three-node KRaft cluster with combined broker and controller roles. Exactly-once transactions, Kafka Streams and Connect were not run.

Recent changes worth knowing: Kafka 4.0 (March 2025) removed ZooKeeper entirely, made the new consumer rebalance protocol generally available and changed the producer's linger.ms default from 0 to 5. Kafka 4.1 (September 2025) turned on Eligible Leader Replicas for new clusters, and Kafka 4.2 (February 2026) made share groups ("queues for Kafka") production-ready. Schema Registry, mentioned in the schemas topic, is a Confluent component rather than part of Apache Kafka; other registries exist.

Where this path leads