Quick revision
The short answer
From Dynamo, Cassandra took consistent hashing, leaderless replication and tunable consistency, which is why the partition key alone decides where data lives and why every query must name it. From Bigtable, it took log-structured storage with memtables, immutable SSTables and compaction, which is why writes are cheap while deletes create tombstones and read-before-write is expensive. Those two inheritances produce the modeling rules: one table per query, bounded partitions, few deletes. Today I would choose Cassandra for very high write rates, multi-data-center availability and stable access patterns, and prefer distributed SQL or simpler stores when we need transactions, joins or flexible queries.
What to remember
In this answer, we saw that Cassandra's distribution comes from Dynamo, consistent hashing, leaderless replication and tunable consistency, which makes the partition key the only route to data, and that its storage comes from Bigtable, memtables, immutable SSTables and compaction, which makes writes cheap and deletes into tombstones. The modeling rules, a table per query, bounded partitions, no read-before-write, few deletes, follow directly. Distributed SQL now offers indexes, joins and transactions at scale with more coordination, so Cassandra fits best where write volume, multi-DC availability and stable access patterns all matter.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
From Dynamo, Cassandra took consistent hashing, leaderless replication and tunable consistency, which is why the partition key alone decides where data lives and why every query must name it. From Bigtable, it took log-structured storage with memtables, immutable SSTables and compaction, which is why writes are cheap while deletes create tombstones and read-before-write is expensive. Those two inheritances produce the modeling rules: one table per query, bounded partitions, few deletes. Today I would choose Cassandra for very high write rates, multi-data-center availability and stable access patterns, and prefer distributed SQL or simpler stores when we need transactions, joins or flexible queries.
Why this question is asked
Cassandra's data modeling rules can feel arbitrary to engineers who learn them as a list of dos and don'ts. They stop feeling arbitrary once we see that each rule falls out of two design papers from 2006 and 2007, Amazon's Dynamo and Google's Bigtable, which Cassandra combined at Facebook. Interviewers ask this at principal level because explaining the why behind the rules is what lets us judge when Cassandra is still the right tool, now that distributed SQL databases offer scale with transactions. In this answer, we will look at what each ancestor contributed, derive the modeling rules from them, compare with newer systems, and set out when to choose Cassandra today.
1The Dynamo Inheritance: Where Data Lives
Dynamo was designed for a shopping cart that must always accept writes. Its key ideas were consistent hashing, which places nodes and keys on a hash ring so adding a node moves only a small share of data; replication of each key to several nodes along the ring; leaderless writes, where any replica can accept a write; and tunable consistency, where each request chooses how many replicas must answer.
Cassandra keeps all of these. The partition key is hashed into a token on the ring, the replicas are the nodes owning that token, and a coordinator sends each read or write to those replicas with a consistency level such as ONE or QUORUM. The consequence for modeling is strict: the only fast way to find data is to know its partition key, because nothing else tells the coordinator which nodes to ask. There is no global index and no leader that knows everything.
2The Bigtable Inheritance: How Data Is Stored
Bigtable contributed the storage engine idea now called a log-structured merge tree. A write goes to a commit log for durability and to an in-memory table, the memtable. When the memtable fills, it is flushed to disk as an immutable sorted file, an SSTable. Over time, compaction merges SSTables, keeping the newest version of each cell. Bigtable also contributed the wide-row data model: rows within a partition sorted by key, which became Cassandra's clustering columns.
Because SSTables are never modified, a write never reads existing data, which is why writes are so cheap and fast. But it also means an update is just a newer version, and a delete cannot erase anything: it must write a marker, a tombstone, that hides older versions until compaction removes both.
- Client query with partition keyMust name the partition
- Coordinator + consistency levelDynamo: tunable, leaderless
- Token ring and replicasDynamo: consistent hashing
- Commit log + memtableBigtable: cheap sequential writes
- Immutable SSTables + compactionBigtable: tombstones for deletes
5 layers, from the top down. Step through them one at a time.
Distribution from Dynamo, storage from Bigtable.
3The Modeling Rules That Follow
Put the two together and the familiar rules follow almost mechanically. Model per query: since only the partition key locates data and there are no joins, each access pattern needs a table whose key matches it, and data is duplicated across tables. Keep partitions bounded: a partition lives on the same replicas and is compacted and read as a unit, so an unbounded partition becomes a hot, slow spot. Avoid read-before-write: writes are cheap because they never read, so a pattern that reads, modifies and writes back throws away the main advantage, and doing it safely needs lightweight transactions, which use Paxos and cost several round trips. Avoid delete-heavy patterns such as queues: every delete is a tombstone that reads must skip until compaction, after gc_grace_seconds, can remove it.
Notice that none of these is a matter of taste. A team that understands the two inheritances can predict the rules without memorising them, and can predict the failures of a design that ignores them.
4What Newer Distributed Databases Offer
Since then, distributed SQL systems, built on ideas from Google Spanner and using consensus protocols such as Raft or Paxos per range of data, have matured. They shard data automatically, replicate with strong consistency, and offer secondary indexes, transactions across rows and shards, and joins. A new query usually needs only a new index, not a new table and backfill.
The price is coordination. Every write must be agreed by a majority of replicas, often with a leader per range, so write latency is higher than Cassandra's local acknowledgement, and multi-region writes pay cross-region round trips. Managed NoSQL services such as DynamoDB keep Cassandra's key-based model but remove most of the operations. And for many workloads, a single PostgreSQL with partitioning and read replicas is enough.
| Aspect | Cassandra | Distributed SQL |
|---|---|---|
| Write path | Leaderless, local ack, very cheap | Consensus per range, higher latency |
| Queries | By partition key, table per query | Secondary indexes, joins |
| Transactions | LWT per partition; general transactions still arriving | Multi-row, multi-shard ACID |
| Multi-DC | Active everywhere, async | Strong, pays cross-region latency |
| Changing queries | New table and backfill | Usually a new index |
5When to Choose Cassandra Today
Cassandra remains a strong choice when three things are true together: very high write rates, such as hundreds of thousands of writes per second of telemetry, events or messages; a need to stay writable in several data centers even during a partition; and access patterns that are known and stable, so the per-query tables will not be rewritten every quarter. Messaging, time series, activity feeds and IoT ingestion often match.
When one of these is missing, the trade-off changes. If queries change often, the per-query modeling cost dominates, and distributed SQL or PostgreSQL is cheaper over time. If correctness across rows matters, as with orders and balances, transactions are worth the latency. If the scale is moderate, a managed key-value service or a relational database is simpler to run. Newer Cassandra versions narrow some gaps, for example storage-attached indexes in Cassandra 5 and work on general transactions, so we check what the version we would run actually offers.
6Follow-up questions
Why does Cassandra not simply add joins?
A join needs to find matching rows by a column other than the partition key, which in Cassandra means asking every node, and then combining results across nodes in the coordinator. That is a distributed scatter-gather on every query, which contradicts the design goal of predictable latency at any scale. Systems that offer joins at scale add query planners, global indexes and coordination that Cassandra deliberately avoided.
Is DynamoDB the same design?
DynamoDB took its name and many ideas from the Dynamo paper but is a different system. It is managed, uses a leader per partition with synchronous replication within a region, and offers strongly consistent reads as an option. The modeling rules are similar, since access is still by partition key with sort keys, which is why query-first design applies to both.
7Conclusion
In this answer, we saw that Cassandra's distribution comes from Dynamo, consistent hashing, leaderless replication and tunable consistency, which makes the partition key the only route to data, and that its storage comes from Bigtable, memtables, immutable SSTables and compaction, which makes writes cheap and deletes into tombstones. The modeling rules, a table per query, bounded partitions, no read-before-write, few deletes, follow directly. Distributed SQL now offers indexes, joins and transactions at scale with more coordination, so Cassandra fits best where write volume, multi-DC availability and stable access patterns all matter.
Open with
I would explain it as two inheritances. From Dynamo, Cassandra got consistent hashing on a token ring, leaderless replication and per-request tunable consistency. That means the partition key alone decides which replicas hold data, and there is no global index or leader that can find rows another way, so every query must name a partition.
Then, if they want more
From Bigtable, it got the log-structured storage engine: commit log, memtable, immutable SSTables and compaction, plus sorted wide rows that became clustering columns. Writes never read old data, so they are cheap, but an update is just a newer version and a delete is a tombstone until compaction removes it.
The modeling rules fall out of that: design one table per query and duplicate data because there are no joins; keep partitions bounded because a partition lives on one set of replicas; avoid read-before-write because it throws away the cheap write path and needs Paxos-based lightweight transactions to be safe; and avoid delete-heavy patterns like queues because of tombstones.
Today distributed SQL systems give secondary indexes, joins and transactions at scale, at the cost of consensus on every write. So I would choose Cassandra when we have very high write rates, need multi-data-center availability, and have stable access patterns; otherwise distributed SQL, PostgreSQL or a managed key-value store is usually simpler.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Apache Cassandra documentation, Amazon DynamoDB developer guide
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Cassandra's design comes from Dynamo-style partitioning and Bigtable-style storage. How...": https://scrivio-interview-library.netlify.app/databases/cassandra-and-dynamodb/5d717d5ab7/