What is the difference between a memtable and an SSTable?
Last updated
A memtable is a mutable, in-memory write buffer; an SSTable is its immutable, on-disk successor. Writes hit the memtable first, then get flushed to an SSTable.
Memtable (in memory):
Mutable: updates to the same key overwrite/merge in place while resident.
One per table (per column family) and volatile: lost on crash if not for the commit log.
Flushed to disk when it hits a size/time threshold.
SSTable (on disk):
Immutable: never edited after being written.
Persistent and durable; many can exist per table and are merged by compaction.
Durability link: Both are backed by the commit log so a crash before flush can be recovered by replaying the log.
- https://www.wecreateproblems.com/interview-questions/cassandra-interview-questions
- https://mindmajix.com/cassandra-interview-questions-and-answers
- https://www.whizlabs.com/blog/cassandra-interview-questions-and-answers/
- https://www.analyticsvidhya.com/blog/2023/03/top-5-interview-questions-on-cassandra/
- https://www.geeksforgeeks.org/dbms/cassandra-vs-dynamodb/
- https://www.knowi.com/blog/cassandra-vs-dynamodb-2025-complete-guide-with-pricing-performance-usecase-migration-tips/
- https://www.bytebase.com/blog/dynamodb-vs-cassandra/
- https://dzone.com/articles/cassandra-vs-dynamodb-database-comparison
- https://www.finalroundai.com/blog/cassandra-interview-questions
- https://www.edureka.co/blog/interview-questions/cassandra-interview-questions/
- https://data-flair.training/blogs/cassandra-interview-questions/
- https://www.adaface.com/blog/cassandra-interview-questions/
- https://www.careers360.com/courses-certifications/articles/apache-cassandra-interview-questions
- https://www.acte.in/cassandra-interview-questions-and-answers
- https://www.devopsschool.com/blog/top-50-interview-questions-and-answers-of-apache-cassandra/