Back to Ghost in the Repo

How systems work.

System design you can break. Each system runs live in your browser. Push traffic up, take parts away, and watch what fails first and why. Start with the building blocks, then take on the real problems.

The parts

One piece at a time, in depth. Each lesson runs live, so you watch the thing work before you read why.

  1. PartMessage queuesAcks, retries, duplicates, dead letters, partitions and fan-out, one message at a time.
  2. PartLoad balancersAlgorithms, health checks, sticky sessions, draining and failover, one request at a time.
  3. PartCachesHits, misses, TTLs, eviction, stampedes and stale data, one key at a time.
  4. PartDatabasesIndexes, pools, locks, lost updates, replicas and failover, one query at a time.
  5. PartRate limitersWindows, buckets, shared counters and 429s, one request at a time.
  6. PartCDNsEdges, hits and misses, TTLs, cache keys, shields, purges and spikes, one request at a time.
  7. PartSharding and consistent hashingShard keys, the hash ring, virtual nodes, hot keys and cross-shard work, one key at a time.
  8. PartRetries and circuit breakersTimeouts, backoff, jitter, retry storms and circuit breakers, one call at a time.

Whole systems

The parts working together under real load. Push traffic up and find what breaks first.

  1. 01The building blocksWhat do servers, load balancers, autoscalers, databases and caches actually do under load?
  2. 02Flash saleHow do you sell 500 units to 10,000 people at once without crashing or overselling?
  3. 03Viral feedHow does a timeline stay fast and fresh when one account has 10 million followers?
  4. 04PaymentsWhy do customers get charged twice, and how do payment systems stop it?
  5. 05Chat appHow does a chat app deliver every message to every member, live, with hundreds of thousands online?
  6. 06Video pipelineHow do you turn a flood of uploads into watchable videos without a huge GPU bill?