SpinTheMic
Pro

Explain it in 60 seconds

Log compaction

Data Engineering · Kafka Streaming · Intermediate

What is log compaction in Kafka, and when do you use it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Keeps the latest value per key, removing older ones.
  • cleanup.policy=compact.
  • Null value (tombstone) deletes a key.
  • Good for changelogs, current state, CDC tables.
  • Can combine compact and delete policies.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics