Skip to main content

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​

ChapterFocus
Amazon Dynamo2007 paper: quorums, vector clocks, hinted handoff
DynamoDBAWS managed key-value/document store
Apache CassandraWide-column, tunable consistency, LSM storage
Google SpannerTrueTime, external consistency, global SQL
CockroachDB ArchitectureSerializable SQL, ranges, Raft, HLC
MongoDB ArchitectureReplica sets, sharding, document model
Snowflake ArchitectureOLAP separation, micro-partitions, warehouses
Apache KafkaDistributed commit log, partitions, ISR
RedisIn-memory structures, Cluster, Sentinel

Learning Path​

  1. Start with Amazon Dynamo to understand quorum replication and conflict detection—the foundation for Cassandra and DynamoDB naming.
  2. Read DynamoDB and Cassandra together to compare managed vs self-managed wide-column design.
  3. Study Spanner and CockroachDB for global SQL consistency tradeoffs (TrueTime vs HLC).
  4. Cover MongoDB for document sharding and Snowflake for analytics warehouse design.
  5. Study Kafka as a replicated log primitive for event-driven architectures.
  6. Finish with Redis for latency-critical caching and coordination patterns.

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 hereWhat you practice
Chapter §22A / §22BShip-ready LLD + drill catalog
Chapter §23 PRACTICEFull interview script
DynamoDB §22ASingle-table keys, GSI lag, hot partitions
Apache Kafka §22Aacks=all, ISR, consumer idempotency
CockroachDB §22ARange splits, serializable retries
Curriculum Overview — Phase 7Rollout status

Return to the Curriculum Overview to see how this domain fits the learning path.