Curriculum · Module 03, Queues and Streams
Partitioned logs
Keyed messages, partitions, offsets and consumer groups: how a log keeps order per key while many consumers share the load.
What each topic covers
- A single queue with one reader hits a ceiling, and many readers on one queue lose the order. Partitions keep order per key and still share the load.
- How a key becomes a partition, what an offset is, how a group shares partitions, and why a log can be replayed.
- Read a keyed topic with a consumer group, then add idle consumers, a hot key, a rebalance and a replay.
- Idle consumers, a hot key, rebalance pauses, no order across keys, a changed partition count, and retention eating unread data.
- A sizing calculation from throughput and consumer speed, and the costs that stop you from simply picking a huge number.
- Auto-commit, commit-before and commit-after processing give three different failure modes. The cost of committing more often, and how long a restart takes to catch up.
- Three quick checks on partitions versus consumers, the ordering guarantee and a crash after uncommitted work, plus the sources.
Topics
Practise this lesson
14 interview questions on partitioned logs, with worked answers and sources.
Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms