Skip to content
All paths
Intermediate → AdvancedCareer

System Design Deep Dive

Build the mental toolkit for designing large systems: fundamentals, building blocks, data storage and reliability patterns. Then apply it to ten classic case studies and timed mock interviews.

What you will be able to do

  • Run a system design interview from requirements and estimates to trade-offs
  • Choose load balancers, caches, queues and CDNs and justify each one
  • Pick storage, replication and partitioning strategies for a workload
  • Design for failure with redundancy, idempotency and observability
  • Present ten classic designs clearly in 45 minutes

Roadmap

Bar length shows each module's share of study time.

  1. 1

    Fundamentals

    The vocabulary and method behind every design.

    12h5 topics
    Not started
    Show topics
  2. 2

    Building blocks

    The components almost every design is assembled from.

    12h5 topics
    Not started
    Show topics
    • Choose L4 vs L7 load balancing and an algorithm for a workload.

      • Compare L4 and L7 load balancing
      • Choose round robin, least connections or hashing
      • Explain health checks and reverse proxies
    • Pick cache-aside, write-through or write-back and handle invalidation and stampedes.

      • Compare cache-aside, write-through and write-back
      • Choose TTLs and invalidation
      • Prevent cache stampedes
      • Use a CDN for static content
    • Decide between a queue and a log like Kafka and explain delivery guarantees.

      • Compare queues and pub/sub
      • Explain Kafka partitions and consumer groups
      • Explain at-least-once and exactly-once delivery
      • Choose a queue or log for a scenario
    • Explain token bucket and sliding window limits and where to enforce them.

      • Explain token bucket and sliding window
      • Decide where to enforce limits
      • List API gateway responsibilities
    • Know when to put data in blob storage or a search engine instead of a database.

      • Store large blobs in object storage
      • Use an inverted index for search
      • Keep a search index in sync with the database
  3. 3

    Data storage at scale

    Where most of the hard trade-offs live.

    14h5 topics
    Not started
    Show topics
  4. 4

    Reliability & distributed systems

    Systems that keep working when things fail.

    14h6 topics
    Not started
    Show topics
  5. 5

    Case studies I: classic services

    The questions interviewers ask most often.

    16h5 topics
    Not started
    Show topics
    • Design ID generation, redirects, caching and analytics for billions of links.

      • Clarify requirements and estimate scale
      • Design the API
      • Generate short IDs without collisions
      • Design storage, redirects and caching
      • Add click analytics and discuss trade-offs
    • Design a rate limiter shared across many API servers with low latency.

      • Gather requirements and limit rules
      • Choose a limiting algorithm
      • Store counters in a shared Redis
      • Handle race conditions and failures
      • Discuss latency and accuracy trade-offs
    • Design partitioning, replication, quorums and failure handling for a KV store.

      • Define requirements and API
      • Partition with consistent hashing
      • Replicate with tunable quorums
      • Handle failures with hinted handoff
      • Resolve conflicts and discuss trade-offs
    • Design fan-out to push, email and SMS with retries, preferences and deduplication.

      • Clarify channels and requirements
      • Estimate notification volume
      • Design the API and data model
      • Fan out through queues to providers
      • Add retries, preferences and deduplication
    • Design a low-latency typeahead with tries, ranking and periodic rebuilds.

      • Define requirements and latency goals
      • Estimate query volume
      • Design a trie with top-k suggestions
      • Rank by popularity
      • Rebuild and cache the index periodically
  6. 6

    Case studies II: large-scale products

    Products with hard scale, real-time or media constraints.

    19h5 topics
    Not started
    Show topics
    • Choose between fan-out on write and read and handle celebrity accounts.

      • Clarify requirements and estimate scale
      • Design the post and feed APIs
      • Model posts, follows and feeds
      • Compare fan-out on write and read
      • Handle celebrity accounts with a hybrid
      • Cache and rank the feed
    • Design real-time delivery, presence, ordering and message storage.

      • Clarify one-to-one and group requirements
      • Estimate message volume
      • Design WebSocket connection handling
      • Model and store messages
      • Track presence and message ordering
      • Discuss delivery guarantees and trade-offs
    • Design upload, transcoding, CDN delivery and adaptive bitrate streaming.

      • Clarify upload and playback requirements
      • Estimate storage and bandwidth
      • Design the upload and transcoding pipeline
      • Deliver through a CDN
      • Explain adaptive bitrate streaming
      • Discuss cost trade-offs
    • Design location tracking, geospatial matching and trip state.

      • Clarify rider and driver requirements
      • Estimate location update volume
      • Design the API and trip data model
      • Index locations with geohash or quadtree
      • Match riders to drivers
      • Model trip state transitions
    • Design a polite, distributed crawler with deduplication and a URL frontier.

      • Clarify scope and politeness rules
      • Estimate pages and bandwidth
      • Design the URL frontier
      • Respect robots.txt and rate limits
      • Deduplicate URLs and content
  7. 7

    Mock interviews

    Practise out loud until the structure is automatic.

    12h2 topics
    Not started
    Show topics
    • Complete four 45-minute designs alone and write up the trade-offs you chose.

      • Pick four design prompts
      • Time-box each design to 45 minutes
      • Cover requirements, API and data model
      • Write up the trade-offs you chose
      • Compare against reference solutions
    • Do at least three mocks with feedback and fix the gaps they expose.

      • Find peers or a mock platform
      • Do three mock interviews
      • Collect structured feedback
      • Fix the gaps exposed
      • Retry a failed prompt