Partitions, request routing, replication, and single-table design in Amazon DynamoDB.
What Is DynamoDB — A managed key-value store that guarantees latency by forbidding the queries that make latency unpredictable, how it differs from Cassandra despite the shared Dynamo name, and where it is the wrong answer. (8 min read)
Partitioning and Request Routing — Every operation is a single-partition lookup: the five-tier architecture, request routers caching partition metadata, partition limits and splits, and one request followed end to end. (6 min read)
Storage Engine and Replication — B-trees, not LSM trees, and leader-based Multi-Paxos per partition, not leaderless quorums: DynamoDB's real divergence from Dynamo and Cassandra, traced through an availability-zone failure. (5 min read)
The Consistency Model — Strong reads are cheap because there is always one authoritative replica to ask, what they cost in RCUs, why GSIs can never be strongly consistent, and where DAX and transactions fit. (8 min read)
Adaptive Capacity and Hot Partitions — Adaptive capacity raised the ceiling but never removed it: 3,000 RCU and 1,000 WCU per partition is a hard wall, and write sharding is how you get around a hot key. (6 min read)
DynamoDB Streams (CDC) — A per-item ordered, exactly-once, 24-hour change log written as part of the commit: shard lineage, ordering limits, the poison-pill record and TTL deletes. (5 min read)
Global Tables — Default multi-region replication is asynchronous last-writer-wins with no merge, so concurrent writes can silently vanish, unless you opt into the synchronous MRSC mode (GA 2025). (5 min read)
Single-Table Design and Data Modeling — Model the table around access patterns before entities: overloaded and sparse indexes, adjacency lists and composite sort keys, and when single-table design is the wrong call. (7 min read)
Synthesis and Self-Test — How replication, the partition ceiling, Streams and GSIs constrain one another, then six scenario questions with worked answers. (10 min read)