HLD: High-Level System Design
Design scalable systems, explain trade-offs and ace design interviews.
- modules
- 12
- topics
- 67
- exercises
- 250
- of practice
- 42 h 40 min
About this course
Learn high-level system design from the ground up: networking basics, scalability, load balancing, caching, databases, replication and sharding, consistency and CAP, messaging, rate limiting, API design and observability, then complete case studies with architecture diagrams.
What you'll learn
12 modules and 67 topics. Every topic has short lessons, a quiz, hands-on exercises checked in your browser, and interview questions.
1System Design Fundamentals
What HLD is, requirements, estimates and the building blocks of a system.
- What is System Design?
- Functional and Non-Functional Requirements
- Latency, Throughput and Percentiles
- Availability, the Nines and SPOFs
- Back-of-the-Envelope Estimation
- Module 1 assessment
2Networking Basics
Client-server, DNS, HTTP/HTTPS, TCP vs UDP, WebSockets and CDNs.
- Client-Server, IPs, Ports and DNS
- HTTP, HTTPS and TLS
- TCP vs UDP (and QUIC)
- Real-time: Polling, Long Polling, SSE and WebSockets
- CDNs, Forward and Reverse Proxies
- Module 2 assessment
3Scalability
Vertical vs horizontal scaling, stateless services and bottlenecks.
- Vertical vs Horizontal Scaling
- Stateless Services and Sessions
- Finding Bottlenecks
- The Scaling Journey: 1 to Millions of Users
- Module 3 assessment
4Load Balancing
Load balancers, algorithms, health checks and L4 vs L7.
- Load Balancer Basics: L4 vs L7, DNS and GSLB
- Load Balancing Algorithms
- Consistent Hashing
- Health Checks, Sticky Sessions and LB High Availability
- Module 4 assessment
5Caching
Cache layers, strategies, eviction, invalidation and Redis.
- Caching Basics: What, Why and Where
- Caching Strategies: Cache-Aside, Read-Through, Write-Through, Write-Back
- Cache Eviction: TTL, LRU, LFU and FIFO
- Cache Invalidation, Stampedes and Hot Keys
- Redis in Practice
- Module 5 assessment
6Databases at Scale
SQL vs NoSQL, replication, sharding, partitioning and indexing.
- SQL vs NoSQL: Choosing a Database
- Indexing at Scale
- Replication: Leaders, Followers and Lag
- Sharding and Partitioning
- Module 6 assessment
7Consistency and Availability
CAP and PACELC, consistency models and consensus basics.
- The CAP Theorem
- PACELC: Latency vs Consistency
- Consistency Models
- Quorums: N, R and W
- Consensus Basics: the Raft Idea
- Module 7 assessment
8Messaging and Async Processing
Queues, pub/sub, Kafka, event-driven design and idempotency.
- Message Queues vs Pub/Sub
- Kafka Basics: Topics, Partitions and Consumer Groups
- Delivery Guarantees, Idempotency and Dead-Letter Queues
- Event-Driven Architecture and Sagas
- Module 8 assessment
9Rate Limiting and API Design
Rate limiting algorithms, API gateways, REST vs gRPC and pagination.
- Rate Limiting Algorithms
- Distributed Rate Limiting and API Gateways
- REST vs gRPC vs GraphQL
- Pagination, Versioning and Idempotency Keys
- Module 9 assessment
10Reliability and Observability
Logging, metrics, tracing, SLOs, failover and disaster recovery.
- Redundancy, Failover and Availability Math
- Timeouts, Retries, Backoff and Circuit Breakers
- Logs, Metrics and Traces
- SLI, SLO, SLA and Disaster Recovery
- Module 10 assessment
11The System Design Interview
A step-by-step method, estimation practice and how to present trade-offs.
- A Step-by-Step Framework for Design Interviews
- Back-of-the-Envelope Estimation Practice
- Communicating Trade-offs and Avoiding Common Mistakes
- Walkthrough: Designing Pastebin with the Framework
- Module 11 assessment
12Case Studies
URL shortener, chat app, news feed, ride sharing, file storage and more.
- Case Study: URL Shortener
- Case Study: Distributed Rate Limiter
- Case Study: Chat App (WhatsApp-style)
- Case Study: News Feed
- Case Study: Notification System
- Case Study: Ride Sharing (Uber-style)
- Case Study: File Storage and Sync (Dropbox-style)
- Case Study: Video Streaming (YouTube/Netflix-style)