awesome-everything RU
↑ Back to the climb

Queues, Streams, Eventing

Kafka partitions: free-recall review

Crux Free-recall prompts across the Kafka partitions unit. Answer each in your own words first, then reveal the model answer and compare.
Your altitude — climbing toward senior
ZeroJuniorMiddleSenior
You are at senior altitude — in orbit
◷ 14 min

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.

Continue the climb ↑Kafka partitions: code and config reading
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.