Logo
Grokking the Advanced System Design Interview
Ask Author
Back to course home

0% completed

Compaction

Let's explore how Cassandra handles compaction.

How does compaction work in Cassandra?

As we have already discussed, SSTables are immutable, which helps Cassandra achieve such high write speeds. Flushing of MemTable to SStable is a continuous process. This means we can have a large number of SStables lying on the disk. While reading, it is tedious to scan all these SStables. So, to improve the read performance, we need compaction. Compaction in Cassandra refers to the operation of merging multiple related SSTables into a single new one

.....

.....

.....

Like the course? Get enrolled and start learning!