Grokking the System Design Interview, Volume II
Vote
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:
- 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.
.....
.....
.....
Like the course? Get enrolled and start learning!
A
Amey Naik
· 5 years ago
"Commit log stores all the writes in sequential order, with each new write appended to the end, whereas MemTable stores data in the sorted order of partition key and clustering columns."
Show 1 reply