Skip to content
Theory · Kafka: topics, partitions, offsets · lesson 1 of 7

Topics and partitions

A ledger orders with lines 0 1 2 3 4, a pen at the new line at the end and three readers' bookmarks on different lines

Many brokers delete a message as soon as a consumer has acknowledged it: that is how a RabbitMQ queue works. Kafka is built differently. It writes messages into a ledger and erases nothing after a read. So several services can read the same message, and each of them can go back and read it again.

In this lesson

  • Topic and log
  • Partitions
  • Who remembers the cluster layout
  • What it looks like in Kafka
  • Common mistake
  • Key points