A staff engineer's field guide to Cassandra: the ring, replication, the write and read paths, compaction, data modeling and operations — and when not to use it.
What Cassandra Is and Why It Exists — What category of database Cassandra is, why Facebook built it, where it sits on CAP, and when reaching for it is (and isn't) the right call. (17 min read)
Replication and Consistency — Replication factor, replica placement, R + W > N, hinted handoff and read repair. (25 min read)
Replication and Consistency, in Plain English — The same ground as the replication part, told simply: how copies drift apart and how Cassandra brings them back together. (12 min read)
Write Path Internals — Commit log, memtable, SSTable: why every mutation is an append, and where the cost of that shows up later. (12 min read)
Anatomy of a Memtable — The nested partition, row and cell tree inside a memtable, per-cell reconciliation, and why Cassandra is called wide-column. (12 min read)
The LSM Tree and the Wide Row — Where a partition actually lives on disk: the partition key as LSM sort-key prefix, contiguous per file but fragmented across files. (18 min read)
Read Path Internals — Bloom filters, the key cache, merging SSTables, tombstones, and what a worst-case read looks like. (18 min read)
Compaction — Why compaction exists, STCS vs. LCS vs. TWCS, and the space and write amplification each one costs. (10 min read)
Data Modeling — Access-pattern-first modeling, partition and clustering keys, wide partitions, and a worked IoT example. (15 min read)
When to Use Cassandra and When Not To — The canonical workload, common mistakes, architectural pitfalls, and Cassandra vs. the lakehouse. (15 min read)