System design · Patterns: the problems hiding inside most prompts

Scaling reads: index, replicate, cache, in that order

Most products read far more than they write, and the reliable way to scale those reads is a fixed order of moves (fix the query, add replicas, add a cache, push to the edge), each sized with arithmetic and each carrying a consistency cost you should name.

22 min read Full lesson in the app Patterns: read replicas, read-your-writes routing, materialised view, request coalescing

What you'll be able to do

Before this: caching-and-stampedes, replication-and-consistency

Log in to read the rest of this lesson

Most products read far more than they write, and the reliable way to scale those reads is a fixed order of moves (fix the query, add replicas, add a cache, push to the edge), each sized with arithmetic and each carrying a consistency cost you should name. This walkthrough runs about 22 minutes, with runnable code you can edit and re-run as you read. A new account gets 7 days of Pro free, no card required.

Log in to continue

The first module of every track is free to read on the web: see what's open in System design.