Log Compaction
Time-based retention forgets by age; compaction forgets by key. One keeps a recent window of events, the other keeps the latest value for everything.
Time-based retention forgets by age; compaction forgets by key. One keeps a recent window of events, the other keeps the latest value for everything.