NoSQL and Distributed Data Modeling
Choose data models by the reads, writes and consistency guarantees that a product catalog needs.
Beginner
Start with Access Patterns
Write the three most important catalog queries and compare key-value, document, wide-column and graph models.
Upcoming lessonBuild a Cart in a Key-Value Store
Design Redis keys, expiry and atomic updates for a shopping cart that survives repeat requests.
Upcoming lessonModel Products as Documents
Compare embedding and referencing product variants as their size and update frequency change.
Upcoming lesson
Intermediate
Index a Document Collection
Support a catalog filter with a compound index and verify how many documents each query examines.
Upcoming lessonDesign a Wide-Column Event Table
Choose a partition key, clustering order and time bucket for an account activity feed.
Upcoming lessonUse Graph Traversals for Relationships
Model products and buyers as a graph and bound the cost of a two-hop recommendation query.
Upcoming lesson
Advanced
Read Your Writes Across Replicas
Follow a profile update across replicas and choose the consistency guarantee the next screen requires.
Upcoming lessonDiagnose a Hot Partition
Compare two partition keys against skewed traffic and prove whether bucketing spreads a popular product’s load.
Upcoming lessonEvolve Documents Without a Stop-the-World Rewrite
Mix two document shapes safely, backfill in batches and measure when old readers can be retired.
Upcoming lesson
Expert
Resolve Conflicting Offline Edits
Merge a disconnected cart and compare last-write-wins, application merge rules and a conflict-free counter.
Upcoming lessonRebuild a Search Projection from Changes
Combine a snapshot and change stream, resume from a checkpoint and detect a missing catalog update.
Upcoming lessonCapstone — Pick a Store for a Flash Sale
Compare two designs using a workload replay, a replication delay and a cost estimate for the busiest hour.
Upcoming lesson