teacher
Sign in
Track

System Design

How real systems stay fast, available and correct — explained from first principles.

46 lessons~25 hours of lessonsTarget: Intermediate — confident in a 45-minute system design interview
Reality check
  • Articles alone will not make you good at system design. Build small systems, break them, and read real postmortems.
  • Interviews test reasoning and trade-offs, not memorised diagrams. Two candidates with the same diagram can get opposite results.
  • Numbers matter. If you cannot estimate QPS, storage and bandwidth roughly, your design is a guess.
  • Most real-world design is choosing what not to build. Simple and boring usually wins.
  1. Stage 40/8

    Real-world tools

    How Kafka, Redis, Elasticsearch, Cassandra, Nginx, S3, ZooKeeper and Kubernetes actually work inside, and when to pick each.

    1. 01Kafka InternalsHow Kafka stores messages in replicated partition logs, and how producers, consumer groups, offsets and transactions behave under failure.45 min
    2. 02Redis InternalsWhy a single-threaded in-memory store is so fast, which data structures it offers, and how persistence, replication and clustering work.40 min
    3. 03Elasticsearch InternalsHow an inverted index, shards and immutable segments make full-text search and log analytics fast, and why it should not be your primary database.40 min
    4. 04Cassandra and DynamoDBHow wide-column stores spread data over a ring, trade consistency for availability, write through LSM trees, and why you model data from the queries backwards.45 min
    5. 05Nginx and Reverse ProxiesHow Nginx handles thousands of connections with a few event-driven workers, and how to use it for load balancing, TLS, caching and rate limiting.35 min
    6. 06Object Storage and Amazon S3How S3 stores files as objects under keys, what its durability and consistency promises really mean, and how to control its costs.35 min
    7. 07ZooKeeper and etcdWhy distributed systems need a small, strongly consistent coordination service, how Raft and ZAB keep it correct, and how leader election, locks and discovery use it.35 min
    8. 08Docker and KubernetesHow containers package software, how Kubernetes schedules and heals many of them, and an honest view of when you do not need it.40 min
  2. Stage 50/16

    Case studies

    End-to-end designs of systems you use every day.

    1. 01Design a URL ShortenerA full case study of a TinyURL-style service, covering short-code generation, a read-heavy store, caching and redirect trade-offs.35 min
    2. 02Design a Chat SystemA full case study of a WhatsApp-style messenger, covering WebSocket connections, message ordering, delivery guarantees, offline users and presence.40 min
    3. 03Design a News FeedA full case study of a social feed, covering fan-out on write versus read, the celebrity problem, feed caches and pagination.35 min
    4. 04Design a Notification SystemA full case study of a push, SMS and email notification platform, covering queues, retries, deduplication, priorities and user preferences.30 min
    5. 05Design a Video Streaming ServiceA full case study of a YouTube-style platform, covering upload, transcoding pipelines, adaptive bitrate streaming and CDN delivery.35 min
    6. 06Design a Ride-Sharing ServiceA full case study of an Uber-style service, covering high-rate location updates, geospatial indexes, driver matching and the trip state machine.35 min
    7. 07Design a Payment SystemA full case study of a payment backend, covering idempotency, double-entry ledgers, unknown outcomes from banks and daily reconciliation.40 min
    8. 08Design Search AutocompleteA full case study of typeahead suggestions, covering tries with cached top-k lists, offline index builds, caching and sharding by prefix.30 min
    9. 09Design a Web CrawlerA full case study of a crawler, covering the URL frontier, politeness, robots.txt, duplicate detection with Bloom filters, DNS caching and recrawl scheduling.35 min
    10. 10Design a Distributed Key-Value StoreA Dynamo-style design covering partitioning with consistent hashing, replication, quorum reads and writes, vector clocks, hinted handoff, Merkle-tree repair and gossip.40 min
    11. 11Design File Storage and SyncA Dropbox or Google Drive case study covering chunking, deduplication, a metadata database, block storage on S3, sync notifications, conflicts and versioning.35 min
    12. 12Design a Proximity ServiceA Yelp or nearby-places case study comparing geohash, quadtree and S2 for radius search, with read-heavy caching and a plan for updating business data.35 min
    13. 13Design a Ticket Booking SystemA case study of a BookMyShow or IRCTC style booking system, covering seat inventory, expiring holds, double-booking prevention and flash-sale traffic.40 min
    14. 14Design a Food Delivery SystemA case study of a Swiggy or Zomato style platform, covering restaurant search, cart and orders, the order state machine, partner assignment, live tracking and ETA.40 min
    15. 15Design a Real-Time LeaderboardA case study of a gaming leaderboard built on Redis sorted sets, covering rank queries, top-K reads, sharding past one node and daily or weekly boards.35 min
    16. 16Design an E-commerce CheckoutA case study of an Amazon style shop, covering catalog, cart, inventory reservation, the order and payment saga, idempotency and flash sales.40 min