Distributed Databases
Production distributed data systems—Dynamo lineage, globally consistent SQL, event logs, and in-memory stores—with explicit tradeoffs for principal-level architecture decisions.
Figure: Sharded distributed database with per-partition replication.
Chapters
| Chapter | Focus |
|---|---|
| Amazon Dynamo | 2007 paper: quorums, vector clocks, hinted handoff |
| DynamoDB | AWS managed key-value/document store |
| Apache Cassandra | Wide-column, tunable consistency, LSM storage |
| Google Spanner | TrueTime, external consistency, global SQL |
| CockroachDB Architecture | Serializable SQL, ranges, Raft, HLC |
| MongoDB Architecture | Replica sets, sharding, document model |
| Snowflake Architecture | OLAP separation, micro-partitions, warehouses |
| Apache Kafka | Distributed commit log, partitions, ISR |
| Redis | In-memory structures, Cluster, Sentinel |
Learning Path
- Start with Amazon Dynamo to understand quorum replication and conflict detection—the foundation for Cassandra and DynamoDB naming.
- Read DynamoDB and Cassandra together to compare managed vs self-managed wide-column design.
- Study Spanner and CockroachDB for global SQL consistency tradeoffs (TrueTime vs HLC).
- Cover MongoDB for document sharding and Snowflake for analytics warehouse design.
- Study Kafka as a replicated log primitive for event-driven architectures.
- Finish with Redis for latency-critical caching and coordination patterns.
Related Domains
- Replication — quorum and leader-based models
- Consistency — CAP, PACELC, linearizability
- Storage Engines — LSM trees under Cassandra/DynamoDB
- Messaging and Streaming — broader event platform context
Production readiness + Game Day
Every substantive chapter in this domain targets the Production LLD and Game Day Standard: whiteboard Production LLD (partition keys, quorum/ISR, failure paths) and run Game Day drills (inject → detect → mitigate → verify → learn).
| Start here | What you practice |
|---|---|
| Chapter §22A / §22B | Ship-ready LLD + drill catalog |
| Chapter §23 PRACTICE | Full interview script |
| DynamoDB §22A | Single-table keys, GSI lag, hot partitions |
| Apache Kafka §22A | acks=all, ISR, consumer idempotency |
| CockroachDB §22A | Range splits, serializable retries |
| Curriculum Overview — Phase 7 | Rollout status |
Return to the Curriculum Overview to see how this domain fits the learning path.