System Design Course
System Design: From First Principles to FAANG Interview Mastery — scaling, distributed systems, classic case studies, and mock interviews.
Enterprise learning path
Foundations & Framework
- 1System Design HomeNext 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…
- 2What 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,…
- 3Functional vs Non-Functional Requirements
Non-functional requirements (NFRs) — latency, throughput, availability, durability, consistency — usually determine architecture more than feature lists.
- 4Requirements Clarification
Requirements clarification is the first 5 minutes of every system design interview and every production RFC.
- 5Back-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.
- 6API Design Fundamentals
API design is the contract between clients and your system.
- 7Trade-offs & Constraints
Every architecture is a trade-off.
Core Building Blocks
- 8Load Balancing
Load balancers distribute traffic across servers for throughput and fault tolerance.
- 9Caching Layers
Caching trades freshness for speed at every layer: browser, CDN, application, database query cache, and distributed cache (Redis).
- 10CDN & Edge Computing
CDNs cache static and dynamic content at edge PoPs close to users — cutting latency and origin load for global products.
- 11SQL vs NoSQL
SQL vs NoSQL is not a moral choice — it's a data model fit question.
- 12Database Replication
Replication copies data for read scale and fault tolerance.
- 13Message Queues
Message queues decouple producers and consumers — absorbing traffic spikes, enabling async workflows, and improving failure isolation.
- 14Microservices Overview
Microservices split a system into independently deployable services aligned (ideally) to business capabilities — trading monolith simplicity for team autonomy and isolated failu…
- 15DNS & 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
- 16CAP Theorem
CAP theorem: during a network partition, a distributed system must choose between consistency (C) and availability (A).
- 17Consistency & Availability
Consistency models — strong, eventual, causal, read-your-writes — define what clients can assume after a write.
- 18Partitioning & Sharding
Sharding (horizontal partitioning) splits data across nodes by a shard key — scaling writes and storage beyond one machine.
- 19Replication Strategies
Replication strategies — single-leader, multi-leader, leaderless — balance write scalability, conflict handling, and read consistency.
- 20Distributed Consensus
Distributed consensus (Raft, Paxos) elects leaders and agrees on ordered logs — foundation for strongly consistent metadata and coordination services.
- 21Idempotency & Deduplication
Idempotency ensures repeating the same request has the same effect as once — essential for retries, queues, and payment APIs.
- 22Rate Limiting & Throttling
Rate limiting protects services from abuse and overload — token bucket, sliding window, and leaky bucket at gateway or service level.
- 23Event-Driven Architecture
Event-Driven Architecture (EDA) replaces synchronous "call and hope" chains with immutable facts published to a log.
Scalability Patterns
- 24Horizontal vs Vertical Scaling
Vertical scaling (bigger machine) is simpler until you hit hardware limits.
- 25Read/Write Splitting
Read/write splitting routes mutations to primary and queries to replicas — the most common database scale pattern before sharding.
- 26Indexing & Query Optimization
Indexes trade write amplification for read speed.
- 27Data Warehousing & Analytics
Data warehouses (Snowflake, BigQuery, Redshift) optimize analytical queries via columnar storage and ETL from OLTP systems — never run BI on production primary.
- 28Search at Scale
Search at scale uses inverted indexes (Elasticsearch, OpenSearch) — full-text, faceted, fuzzy — separate from transactional DB.
- 29Blob & Object Storage
Object storage (S3, GCS) stores unstructured blobs — images, videos, backups — with durability, CDN integration, and pay-per-GB economics.
Reliability & Operations
- 30Monitoring & Observability
Observability — metrics, logs, traces — answers "what broke?" and "why slow?" in distributed systems where printf debugging fails.
- 31Fault Tolerance & Redundancy
Fault tolerance designs for component failure as normal — redundancy, health checks, automatic failover, and graceful degradation.
- 32Disaster Recovery
Disaster recovery (DR) plans for region loss — RPO (data loss tolerance) and RTO (recovery time) drive backup, replication, and runbook investment.
- 33SLA, SLO & SLI
SLI, SLO, SLA — measure reliability (SLI), set internal targets (SLO), contract with users (SLA).
- 34Deployment & Release Strategies
Deployment strategies — blue-green, canary, rolling — balance release speed with blast radius control.
- 35Security in Distributed Systems
Security at scale — authentication, authorization, encryption in transit/at rest, secrets management, and zero-trust between services.
Classic Case Studies
- 36Design: URL Shortener
URL shortener — the classic system design interview.
- 37Design: Twitter / News Feed
Twitter / news feed — fan-out on write vs fan-out on read, celebrity problem, and timeline ranking at scale.
- 38Design: WhatsApp Messenger
WhatsApp-style messaging — real-time delivery, offline sync, end-to-end encryption, and presence at billion-user scale.
- 39Design: Uber Ride-Sharing
Uber / ride-sharing — geospatial indexing, matching supply and demand, surge pricing, and real-time location updates.
- 40Design: Netflix Video Streaming
Netflix-style streaming — transcoding pipeline, adaptive bitrate, CDN delivery, and playback analytics at global scale.
- 41Design: Instagram Photo Sharing
Instagram-style photo sharing — upload pipeline, feed generation, likes/comments, and object storage for media.
- 42Design: Dropbox File Storage
Dropbox-style file storage — chunking, deduplication, sync protocol, and metadata vs blob separation.
- 43Design: E-Commerce at Scale
E-commerce at scale composes checkout, inventory, payment, search, and recommendations — the full system design capstone.
Interview Mastery
- 44System Design Interview Framework
System design interview framework — structured 45 minutes: clarify, estimate, design, deep-dive, trade-offs.
- 45Mock Interview: URL Shortener
Mock interview: URL shortener — walk through full 45-minute loop with junior, mid, and senior answer levels.
- 46Mock Interview: Chat System
Mock interview: chat system — 1:1 and group messaging, online presence, read receipts, and push notifications.
- 47Mock Interview: Rate Limiter
Mock interview: distributed rate limiter — token bucket at scale across multiple API servers with Redis.
- 48System Design Cheat Sheet
System design cheat sheet — quick reference for interviews: components, CAP, estimation formulas, and classic problem patterns.