System design · Explained
How big apps stay up, one idea at a time.
Short explainers for developers who are just getting started. Every term is explained before it's used, and every idea comes with a little machine you can poke: add a server, crash one, pull the plug.
Ready to read
Scaling · New
Vertical vs horizontal scaling
Your app is slow. Do you buy a bigger box, or more boxes?
Read the explainer →Coming soon
On the bench, not built yet.
- Soon
Scaling
Load balancers
How the front door decides which server gets your request.
- Soon
Speed
Caching
Why the second request is a hundred times faster than the first.
- Soon
Speed
CDNs
Copies of your site, parked close to every user.
- Soon
Databases
Database replication
One database that writes, many that read.
- Soon
Databases
Sharding
Splitting one huge table across many machines.
- Soon
Reliability
Message queues
Do the slow work later, and never lose a job.
- Soon
Reliability
Rate limiting
Saying “slow down” before your servers fall over.
- Soon
Databases
Consistent hashing
Adding a server without reshuffling everything.