Articles
High Level Design
Technology Deep Dive
Cassandra
Overview
🗄️

Cassandra

Apache Cassandra deep dive — cluster architecture and the ring, tunable consistency, the LSM-tree storage engine, and real-world case studies from Discord.

7 Articles
📝 Articles

Dynamo & Bigtable Inheritance

How Cassandra inherits its cluster mechanics from Amazon Dynamo and its on-disk storage engine from Google Bigtable, replacing vector clocks with last-write-wins.

Jul 20, 20262 min read

Cluster Architecture — Building Up the Ring

Build a Cassandra cluster from one node up — naive partitioning, consistent hashing, virtual nodes (vnodes), replication, and rack-aware placement, derived from first principles.

Jul 10, 202628 min read

Consistency

Tunable consistency in Cassandra — why different operations need different correctness, quorums, R + W > N, read repair, and consistency levels.

Jun 29, 202620 min read

Cassandra Storage Engine Internals

Why Cassandra uses LSM trees instead of B-trees — memtables, SSTables, the commit log, compaction, bloom filters, and the read/write paths.

Jul 12, 202650 min read

Cassandra Data Modeling & Anti-Patterns

Query-first data modeling in Cassandra — hot partitions, partition-size limits, common anti-patterns to avoid, and when not to use Cassandra.

Jul 20, 202621 min read

How Discord Stores Billions of Messages

How Discord scaled message storage to billions on Cassandra — data modeling, partitioning by bucket, and the operational lessons learned.

Jul 5, 202610 min read

How Discord Stores Trillions of Messages

How Discord moved from Cassandra to ScyllaDB to store trillions of messages — GC pain, hot partitions, and a shard-per-core C++ rewrite.

Jul 8, 202622 min read