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

0% completed

Anatomy of Cassandra's Write Operation

Let’s dig deeper into the components involved in Cassandra’s write path.

Cassandra stores data both in memory and on disk to provide both high performance and durability. Every write includes a timestamp. Write path involves a lot of components, here is the summary of Cassandra's write path:

  1. Each write is appended to a commit log, which is stored on disk.
  2. Then it is written to MemTable in memory.
  3. Periodically, MemTables are flushed to SSTables on the disk.
  4. Periodically, compaction runs to merge SSTables.

Let's dig deeper into these parts.

.....

.....

.....

Like the course? Get enrolled and start learning!