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:
- Each write is appended to a commit log, which is stored on disk.
- Then it is written to MemTable in memory.
- Periodically, MemTables are flushed to SSTables on the disk.
- Periodically, compaction runs to merge SSTables.
Let's dig deeper into these parts.