open atlas
↑ Back to track
Queues, Streams, Eventing QUE · 02 · 08

Kafka partitions: free-recall review

Free-recall prompts across the Kafka partitions unit. Answer each in your own words first, then reveal the model answer and compare.

QUE Senior ◷ 14 min
Level
FoundationsJuniorMiddleSenior

Retrieval beats re-reading. For each prompt, say or write a full answer from memory before you open the model answer — the effort of recall is what makes the mechanism stick.

Goal

Reconstruct the unit’s core mechanisms — the partitioner, per-key ordering, consumer-group assignment, the one-way door, and rebalancing — without looking back at the lesson.

Recall before you leave
  1. 01
    What three jobs does the default partitioner's hash(key) % N do at once, and why does conflating them cause design bugs?
  2. 02
    Why is per-key ordering free in Kafka, and what is the exact scope of the ordering guarantee?
  3. 03
    Explain why consumer parallelism is hard-capped at the partition count.
  4. 04
    Why is increasing a topic's partition count a one-way door, and what is the safe alternative?
  5. 05
    What is a stop-the-world rebalance, why does it hurt, and what two mechanisms reduce it?
  6. 06
    What is hot-partition skew, why do more partitions and more consumers not fix it, and where is the real fix?
Recap

If you could reconstruct each answer from memory, you hold the unit’s spine: one partitioner formula does distribution, ordering, and co-location at once; ordering is guaranteed only within a partition; consumer parallelism is hard-capped at the partition count; raising that count rehashes keys and breaks per-key order, so it is a one-way door you provision around or migrate past; and the two production failures — rebalances and hot-partition skew — are tamed by cooperative rebalancing plus static membership, and by fixing the key rather than the count. Now when you see a teammate propose bumping partition count in place, you will know the exact question to ask first: what happens to hash(key) % N for every live key?

Something unclear?

Ask a question about this lesson. Questions are anonymous and go straight to the author to make the lesson better.

shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?
sources3
expand
  1. 01
  2. 02
  3. 03

Trademarks belong to their respective owners. Editorial reference only.