system-design

    System Design Course

    System Design: From First Principles to FAANG Interview Mastery — scaling, distributed systems, classic case studies, and mock interviews.

    48
    Lessons
    7
    Modules
    0/48
    Completed
    Curriculum

    Enterprise learning path

    7 modules · 48 lessons

    Foundations & Framework

    0/7 complete
    1. 1
      System Design Home
      Next up

      Welcome to System Design: From First Principles to FAANG Interview Mastery — a mentor-led course for engineers who need to design systems that survive real traffic, real failure…

    2. 2
      What Is System Design?

      System design is the discipline of structuring components — servers, databases, caches, queues — so a product meets functional requirements under real-world constraints: scale,…

    3. 3
      Functional vs Non-Functional Requirements

      Non-functional requirements (NFRs) — latency, throughput, availability, durability, consistency — usually determine architecture more than feature lists.

    4. 4
      Requirements Clarification

      Requirements clarification is the first 5 minutes of every system design interview and every production RFC.

    5. 5
      Back-of-Envelope Estimation

      Back-of-envelope estimation translates vague "millions of users" into QPS, storage, and bandwidth — so you pick right-sized components before drawing boxes.

    6. 6
      API Design Fundamentals

      API design is the contract between clients and your system.

    7. 7
      Trade-offs & Constraints

      Every architecture is a trade-off.

    Core Building Blocks

    0/8 complete
    1. 8
      Load Balancing

      Load balancers distribute traffic across servers for throughput and fault tolerance.

    2. 9
      Caching Layers

      Caching trades freshness for speed at every layer: browser, CDN, application, database query cache, and distributed cache (Redis).

    3. 10
      CDN & Edge Computing

      CDNs cache static and dynamic content at edge PoPs close to users — cutting latency and origin load for global products.

    4. 11
      SQL vs NoSQL

      SQL vs NoSQL is not a moral choice — it's a data model fit question.

    5. 12
      Database Replication

      Replication copies data for read scale and fault tolerance.

    6. 13
      Message Queues

      Message queues decouple producers and consumers — absorbing traffic spikes, enabling async workflows, and improving failure isolation.

    7. 14
      Microservices Overview

      Microservices split a system into independently deployable services aligned (ideally) to business capabilities — trading monolith simplicity for team autonomy and isolated failu…

    8. 15
      DNS & Networking Basics

      DNS and networking are the invisible foundation — routing users to healthy endpoints, enabling TLS, and defining security perimeters (VPC, subnets, security groups).

    Distributed Systems

    0/8 complete
    1. 16
      CAP Theorem

      CAP theorem: during a network partition, a distributed system must choose between consistency (C) and availability (A).

    2. 17
      Consistency & Availability

      Consistency models — strong, eventual, causal, read-your-writes — define what clients can assume after a write.

    3. 18
      Partitioning & Sharding

      Sharding (horizontal partitioning) splits data across nodes by a shard key — scaling writes and storage beyond one machine.

    4. 19
      Replication Strategies

      Replication strategies — single-leader, multi-leader, leaderless — balance write scalability, conflict handling, and read consistency.

    5. 20
      Distributed Consensus

      Distributed consensus (Raft, Paxos) elects leaders and agrees on ordered logs — foundation for strongly consistent metadata and coordination services.

    6. 21
      Idempotency & Deduplication

      Idempotency ensures repeating the same request has the same effect as once — essential for retries, queues, and payment APIs.

    7. 22
      Rate Limiting & Throttling

      Rate limiting protects services from abuse and overload — token bucket, sliding window, and leaky bucket at gateway or service level.

    8. 23
      Event-Driven Architecture

      Event-Driven Architecture (EDA) replaces synchronous "call and hope" chains with immutable facts published to a log.

    Scalability Patterns

    0/6 complete
    1. 24
      Horizontal vs Vertical Scaling

      Vertical scaling (bigger machine) is simpler until you hit hardware limits.

    2. 25
      Read/Write Splitting

      Read/write splitting routes mutations to primary and queries to replicas — the most common database scale pattern before sharding.

    3. 26
      Indexing & Query Optimization

      Indexes trade write amplification for read speed.

    4. 27
      Data Warehousing & Analytics

      Data warehouses (Snowflake, BigQuery, Redshift) optimize analytical queries via columnar storage and ETL from OLTP systems — never run BI on production primary.

    5. 28
      Search at Scale

      Search at scale uses inverted indexes (Elasticsearch, OpenSearch) — full-text, faceted, fuzzy — separate from transactional DB.

    6. 29
      Blob & Object Storage

      Object storage (S3, GCS) stores unstructured blobs — images, videos, backups — with durability, CDN integration, and pay-per-GB economics.

    Reliability & Operations

    0/6 complete
    1. 30
      Monitoring & Observability

      Observability — metrics, logs, traces — answers "what broke?" and "why slow?" in distributed systems where printf debugging fails.

    2. 31
      Fault Tolerance & Redundancy

      Fault tolerance designs for component failure as normal — redundancy, health checks, automatic failover, and graceful degradation.

    3. 32
      Disaster Recovery

      Disaster recovery (DR) plans for region loss — RPO (data loss tolerance) and RTO (recovery time) drive backup, replication, and runbook investment.

    4. 33
      SLA, SLO & SLI

      SLI, SLO, SLA — measure reliability (SLI), set internal targets (SLO), contract with users (SLA).

    5. 34
      Deployment & Release Strategies

      Deployment strategies — blue-green, canary, rolling — balance release speed with blast radius control.

    6. 35
      Security in Distributed Systems

      Security at scale — authentication, authorization, encryption in transit/at rest, secrets management, and zero-trust between services.

    Classic Case Studies

    0/8 complete
    1. 36
      Design: URL Shortener

      URL shortener — the classic system design interview.

    2. 37
      Design: Twitter / News Feed

      Twitter / news feed — fan-out on write vs fan-out on read, celebrity problem, and timeline ranking at scale.

    3. 38
      Design: WhatsApp Messenger

      WhatsApp-style messaging — real-time delivery, offline sync, end-to-end encryption, and presence at billion-user scale.

    4. 39
      Design: Uber Ride-Sharing

      Uber / ride-sharing — geospatial indexing, matching supply and demand, surge pricing, and real-time location updates.

    5. 40
      Design: Netflix Video Streaming

      Netflix-style streaming — transcoding pipeline, adaptive bitrate, CDN delivery, and playback analytics at global scale.

    6. 41
      Design: Instagram Photo Sharing

      Instagram-style photo sharing — upload pipeline, feed generation, likes/comments, and object storage for media.

    7. 42
      Design: Dropbox File Storage

      Dropbox-style file storage — chunking, deduplication, sync protocol, and metadata vs blob separation.

    8. 43
      Design: E-Commerce at Scale

      E-commerce at scale composes checkout, inventory, payment, search, and recommendations — the full system design capstone.

    Interview Mastery

    0/5 complete
    1. 44
      System Design Interview Framework

      System design interview framework — structured 45 minutes: clarify, estimate, design, deep-dive, trade-offs.

    2. 45
      Mock Interview: URL Shortener

      Mock interview: URL shortener — walk through full 45-minute loop with junior, mid, and senior answer levels.

    3. 46
      Mock Interview: Chat System

      Mock interview: chat system — 1:1 and group messaging, online presence, read receipts, and push notifications.

    4. 47
      Mock Interview: Rate Limiter

      Mock interview: distributed rate limiter — token bucket at scale across multiple API servers with Redis.

    5. 48
      System Design Cheat Sheet

      System design cheat sheet — quick reference for interviews: components, CAP, estimation formulas, and classic problem patterns.