Skip to main content
PProfileMatch
← Path

Apache Kafka · Kafka Retention, Ordering and When Not to Use Kafka

0 XP
  1. 1 current stop: learning
  2. 2 upcoming
  3. 3 upcoming
  4. 4 upcoming
  5. 5 upcoming

Finish after stop 5

Stop 1 of 5 · Price board at the cycle depot

Trick to keep in mind+3 XP

Delete forgets by age; compact forgets by key, keeping the newest value per key.

Retention removes old segments whatever their content, so a rarely changing item can vanish entirely. Compaction asks a different question for each key: what is the latest value? The older values for that key become garbage while the newest stays, which fits topics representing current state, provided the key identifies the item.

Read it once, then a question tests whether the trick stuck.