What is 'Compaction' in Apache Kafka?
What is 'Compaction' in Apache Kafka?
Approach: Explain retention based on keys rather than time.
A policy that ensures Kafka retains at least the last known value for each message key within the log of data for a single topic partition.
Follow-up: How does this differ from standard time-based retention?
Key concepts: log cleaning, key retention.