What is compaction in distributed storage systems?

Updated May 15, 2026

Short answer

Compaction is the process of merging and reorganizing storage files to improve read performance.

Deep explanation

In systems like Cassandra, HBase, and LSM-tree-based storage engines, writes are appended in multiple SSTable files. Over time, this leads to fragmentation and duplicate records. Compaction merges these files, removes deleted records (tombstones), and improves read efficiency. It is essential for maintaining performance in write-heavy systems.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Data Processing interview questions

View all →