internalsGet Pro

Module 09 · Lesson 2 of 14Pro

Kafka in practice: topics, partitions and offsets

Level
Intermediate
Topic
Event streaming with Kafka
Reading time
17 min

When you finish this page you can

  1. Read a topic’s describe output and say which broker leads each partition and which copies are in sync.
  2. Size a topic’s partition count from its peak rate and what one consumer can handle, and explain why adding partitions later moves keys.
  3. Choose a replication factor and min.insync.replicas, and predict what a topic does when one availability zone fails.
  4. Find any record by its address of topic, partition and offset, down to the segment file on a broker’s disk.
  1. Event streaming: data as a continuous flow13 min

A topic created with one command and no flags

is an online store in India. At this stage it records about 200 million click events a day: every product view, search and add-to-cart in its apps. The apps send them to a click collector service, which writes them to Kafka. From there a sink copies them to Amazon S3 for Meera, a data engineer, and later Flink and a live festival dashboard will read them too.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan