System DesignGroundworkSystem Design

Step 2 of 2 · your path

System Design, Intermediate

You know the building blocks. Now learn how they behave under real load: load balancing algorithms, CDNs, queues, and consistency tradeoffs.

Your progress

0 / 13 done

Up next

Load balancing in depth

22 min read

The order I'd read them in

About 4 h 16 min of reading. Tick off what you've read, it is remembered on this device.

  1. Load balancing in depthThe box everyone draws and nobody explains — where L7 earns its latency, why consistent hashing keeps recurring, and how a health check turns a brownout into an outage.
    22 min read
  2. CDNsMove the bytes closer to the user — the cheapest 10x in system design, right up to the moment you cache something personal.
    23 min read
  3. Message queues & async processingThe request path should only do the work the user is actually waiting for — everything else goes on a queue and gets retried.
    20 min read
  4. Consistency modelsEvery consistency model is just a rule about which stale reads you are willing to let a user see.
    17 min read
  5. ReplicationKeeping copies of the same data on several machines is easy until the machines disagree, and then every design choice is a decision about which copy you are willing to lose.
    26 min read
  6. Rate limiting & throttlingThe only thing standing between one badly-behaved client and everybody else's latency.
    19 min read
  7. Designing for availabilityAvailability multiplies down your dependency chain — five nines in one box is four nines in a system.
    19 min read
  8. Storage systemsBlock, file, object — and why the bytes of a user upload should never touch your app servers.
    19 min read
  9. Search systems (surface)The database scans; the inverted index looks up. Everything else in search is ranking and staleness.
    19 min read
  10. Microservices and service discoveryWhen splitting a system pays for itself, what it costs, and how one service finds another once the addresses keep changing.
    14 min read
  11. Security basics for designWho is calling, what may they do, and what happens on the day a secret leaks.
    13 min read
  12. Walkthrough: a news feed / chat appFan-out on write, fan-out on read, and the hybrid that exists because one account has 150 million followers.
    23 min read
  13. Walkthrough: a notification systemA notification system looks like a loop over users and a call to an API, until you remember that the APIs are other people's, the users can say no, and a retry can wake someone up twice.
    22 min read

Practice at this level

No exercises tagged for this level yet. The ones on each chapter above still work.