
Functional vs non-functional requirements, and why every design is a set of trade-offs rather than one right answer. Introduces the vocabulary used everywhere else: latency, throughput, availability, consistency, cost.
L1 cache, RAM, SSD, disk, same-datacenter and cross-continent round trips, all laid side by side. Why designs are driven by orders of magnitude, and what "fast" means at each layer.
Throughput vs latency, why averages lie, p50/p95/p99, and tail latency. Shows how one slow dependency in a fan-out request makes the whole request slow.
Turning daily active users into requests per second, storage, bandwidth and server counts. Covers powers of two, peak vs average traffic, and a full worked example.
What 99.9% vs 99.99% means in minutes of downtime per year. How availability multiplies for components in series and improves for components in parallel.
How teams define "working" with numbers, and how an error budget decides when to ship features and when to fix reliability.
Bigger machines vs more machines, the limits of each, and why horizontal scaling forces you to deal with state, coordination and failure.
Why stateless servers scale easily, and where the session goes instead: sticky sessions, a shared session store, or signed tokens. Covers the cost of each.
Finding the single points of failure in a design. Covers active-passive vs active-active, N+1 capacity, and why redundancy that is never tested doesn't count.
What each looks like, what microservices actually cost (network calls, data ownership, operations), and when a monolith is the right answer.
The end-to-end path of DNS, TCP, TLS, HTTP, load balancer, server, database and response. This is the map the rest of the networking lessons zoom into.
Addressing, how a port identifies a process, and what TCP's reliability and ordering cost compared to UDP's speed. Covers when each is the right choice.
The three-way handshake, flow control, congestion control and slow start, head-of-line blocking, and why opening new connections is expensive.
Recursive resolvers, root/TLD/authoritative servers, record types (A, AAAA, CNAME, NS) and TTLs. How DNS is used for load balancing, failover and GeoDNS.
Keep-alive, multiplexing, header compression, and how QUIC on UDP removes TCP head-of-line blocking. Covers what changes for system designers.
The TLS 1.3 handshake, certificates and chains of trust, and the handshake cost. Explains where to terminate TLS (load balancer vs end to end) and why.
Why reusing connections matters for HTTP clients and databases. Covers pool sizing, exhausted pools, and connection storms after a restart.
Four ways to push data to clients, side by side, with their cost in connections, latency and complexity. Covers when each is the right choice.
Keeping millions of persistent connections open. Covers connection gateways, routing a message to the right connection, heartbeats, and reconnect storms.
Edge caching, pull vs push, cache keys, TTLs and invalidation, and origin shielding. Shows what a CDN takes off your servers and what it can't.
What sits between clients and servers: TLS termination, compression, caching, routing. Covers what Nginx and Envoy actually do in an architecture.
One address in front of many servers. Covers how requests are spread, how health checks route around failures, and what this buys you.
Balancing TCP connections vs HTTP requests. Shows what each can see and do (path routing, headers, TLS) and what each costs.
Round robin, weighted, least connections, least response time, power of two random choices, and hashing. Shows which one breaks under which traffic.
The load balancer as a single point of failure, and the fixes: active-passive pairs with a floating IP, anycast, and DNS across multiple load balancers.
One entry point for many services: routing, authentication, rate limiting, request aggregation, and the backend-for-frontend pattern. Covers when a gateway becomes a bottleneck.
How services find each other when instances come and go. Covers client-side vs server-side discovery, registries like Consul and etcd, and DNS-based discovery.
Moving retries, mTLS and telemetry out of application code into a proxy next to each service. What you gain, and the latency and operational cost.
Resources, HTTP methods, status codes, error formats and naming. Covers the design choices that are painful to change later.
Why OFFSET 1000000 gets slow and skips or repeats rows as data changes, and how keyset/cursor pagination fixes both.
Why "retry on failure" can charge a customer twice. Covers idempotency keys, how servers store and check them, and which HTTP methods are naturally idempotent.
Clients ask for exactly the fields they need. Covers over- and under-fetching, the N+1 resolver problem and DataLoader, caching difficulties, and when GraphQL is worth it.
Binary contracts over HTTP/2, streaming, and schema evolution with field numbers. Covers why gRPC is popular between services and awkward for browsers.
Calling the customer's server when something happens. Covers retries, ordering, signing payloads, verifying them, and protecting both sides.
URL vs header versioning, additive changes, and expand-then-contract. Covers how to evolve an API without breaking clients you don't control.
Pages on disk, the buffer pool, and what a full table scan really reads. Gives the mental model every later storage lesson builds on.
How a B-tree turns a scan into a few page reads, why indexes slow down writes, and how column order in a composite index decides which queries it helps.
Hash, covering, partial and expression indexes, and inverted indexes for full-text search. Covers how to read a query plan to see which index is used.
The write-optimized engine behind Cassandra, RocksDB and many others: memtable, flush, compaction, and Bloom filters. Covers the read vs write amplification trade-off against B-trees.
How a database survives a crash mid-write: the WAL, fsync, checkpoints and recovery. Covers what "committed" actually guarantees.
Atomicity, consistency, isolation and durability explained with one bank transfer. Shows what breaks when each is missing.
Dirty reads, non-repeatable reads, phantoms, lost updates and write skew, each shown happening. Covers which isolation level prevents which.
How Postgres and others let readers and writers not block each other by keeping row versions. Covers snapshots, vacuum, and long-transaction pitfalls.
SELECT ... FOR UPDATE and locks vs version columns and compare-and-set. Covers deadlocks, and which approach fits high vs low contention.
Why we normalize, what joins cost at scale, and when to copy data on purpose. Covers keeping the copies in sync.
Choosing from access patterns, consistency needs and scale, not hype. Ends with a decision checklist you can reuse.
The simplest data model and why it scales so well. Covers partition key design, single-item operations, and the DynamoDB model (partition and sort keys).
The MongoDB-style model: embedding vs referencing, schema flexibility, and the queries that become painful.
Cassandra and Bigtable data modelling, where you design tables from the queries. Covers partitions, clustering keys, and avoiding huge partitions.
When the relationships are the query: friends of friends, fraud rings, recommendations. Covers how graph traversal differs from SQL joins.
Append-heavy data with timestamps. Covers compression, downsampling, retention policies, and why general databases struggle with it.
How Elasticsearch finds documents: tokenizing, inverted indexes, BM25 relevance, shards and replicas. Covers keeping a search index in sync with the database.
Finding "what's near me" fast with geohash, quadtrees and S2/H3 cells. Covers the edge cases at cell boundaries.
The S3 model: buckets, keys, immutability, and eleven nines of durability through replication and erasure coding. Covers presigned URLs and why files don't belong in your database.
Why analytics queries kill a production database, and how column stores and data warehouses read only the columns they need.
Leader and followers, synchronous vs asynchronous replication, and scaling reads with replicas. Covers what replication lag is.
Read-your-own-writes, monotonic reads and consistent prefix reads, each shown failing. Covers the practical fixes for each.
Promoting a follower when the leader dies, losing writes, two leaders at once, and fencing. Covers why automatic failover is harder than it looks.
Writing in several regions at once. Covers conflicts, last-write-wins and what it silently loses, and other conflict-resolution strategies.
The Dynamo-style approach: N, R and W, read repair, hinted handoff and sloppy quorums. Covers what R + W > N really guarantees.
Splitting data across machines by range, by hash, or with a directory. Covers what each strategy is good and bad at.
Hot partitions, the celebrity problem, and time-based keys that pile onto one shard. Covers how to pick a key from the access pattern.
The hash ring, why hash % N reshuffles everything when N changes, and how virtual nodes even out the load.
Moving data while serving traffic. Covers fixed partition counts, splitting partitions, and live migration with dual writes and backfill.
What happens to joins, global uniqueness and secondary indexes once data is sharded. Covers local vs global indexes and scatter-gather.
How Spanner and CockroachDB give you transactions across the planet, using TrueTime and commit wait. Covers what that costs in latency.
Hit ratio and why it matters so much, and every place a cache can live: browser, CDN, application, database. Covers what's worth caching.
Cache-aside, read-through, write-through, write-behind and write-around, each animated. Covers what each does on a miss, a write and a crash.
LRU, LFU, FIFO and TTLs, and how LRU is built from a hash map and a linked list. Covers why the right policy depends on the traffic.
Why it's called one of the two hard problems. Covers stale reads, race conditions between the DB and the cache, versioned keys, and delete-vs-update.
A hot key expires and a thousand requests hit the database at once. Covers locking, request coalescing, and probabilistic early refresh.
One key too popular, requests for keys that don't exist, and many keys expiring together. Covers local caches, Bloom filters and jittered TTLs.
The data structures (strings, hashes, sorted sets, streams), the single-threaded model, RDB vs AOF persistence, and Redis Cluster. Covers what Redis is great at and where it bites.
Cache-Control, ETags, conditional requests and stale-while-revalidate. Covers getting browsers and CDNs to do the work for you.
Why making the user wait for everything is fragile and slow, and how a queue between services absorbs spikes and failures.
Producers, consumers, acknowledgements, visibility timeouts and dead-letter queues. Covers how SQS and RabbitMQ deliver work.
Point-to-point vs publish/subscribe, topics and subscriptions. Covers fanning one event out to many independent consumers.
An append-only log split into partitions, with offsets, consumer groups, replication and retention. Covers why Kafka is a log and not a queue.
At-most-once, at-least-once and "exactly-once". Covers why exactly-once is really idempotent processing, and how to build idempotent consumers.
Why global ordering doesn't scale, and how partition keys give per-entity ordering. Covers what breaks ordering in practice (retries, rebalances).
What happens when consumers fall behind producers. Covers bounded queues, flow control, and dropping or shedding work on purpose.
Workers, scheduling, retries with backoff, poison messages and job deduplication. Covers how image resizing or email sending actually runs.
Events vs commands, choreography vs orchestration, and the debugging and consistency costs of systems that talk through events.
Storing every change as an event and deriving state from the log. Covers snapshots, replays, schema changes, and when it's overkill.
Separate models for writes and reads, kept in sync by events. Covers when the extra complexity pays off.
Why "write to the DB, then publish an event" loses data. Covers the transactional outbox pattern and change data capture (Debezium).
How a coordinator gets several databases to commit together, and why the protocol blocks and hurts availability.
Long business transactions as a chain of local steps with compensating actions. Covers orchestration vs choreography, with a booking example.
Partial failure, unreliable networks, and the fallacies of distributed computing. Covers why "it timed out" doesn't tell you what happened.
What C, A and P actually mean, and why the real choice is only made during a partition. Covers common misreadings.
The trade-off CAP leaves out: even without a partition you choose between latency and consistency. Real databases placed on the map.
Linearizable, sequential, causal and eventual consistency, each shown with the same timeline of reads and writes.
Why two machines never agree on the time. Covers NTP, clock jumps, and the bugs caused by ordering events by wall-clock timestamps.
Ordering events without trusting clocks: happened-before, Lamport timestamps, and vector clocks for detecting concurrent updates.
Choosing one node to be in charge. Covers leases, the risks of two leaders, and using ZooKeeper or etcd instead of writing your own.
How a cluster agrees on a log despite failures: terms, elections, log replication and commit rules. Shown step by step.
The original consensus algorithm's core idea (prepare/promise, accept), and how it relates to Raft. Covers why it has a reputation for being hard.
Locking across machines with Redis or ZooKeeper. Covers why a lock with a lease can still be held by two clients, and how fencing tokens fix it.
Heartbeats, timeouts, phi-accrual detectors, and gossip protocols like SWIM. Covers how a cluster learns that a node is dead.
Data types that merge concurrent edits without conflicts: counters, sets, sequences. Covers where they power collaborative and offline-first apps.
Finding which data differs between two replicas without comparing everything. Covers how Dynamo-style stores and Git use hash trees.
Answering "definitely not here" in a few bits. Covers false positives, sizing, and where they save disk reads and network calls.
Counting unique visitors and frequent items in a fixed tiny amount of memory. Covers the accuracy you trade for it.
Choosing timeouts, exponential backoff, jitter and retry budgets. Covers how naive retries turn a small outage into a big one.
Failing fast when a dependency is down and isolating resources so one failure can't sink everything. Covers the breaker's states.
Token bucket, leaky bucket, fixed window, sliding log and sliding window counter, each animated with the same burst of traffic.
Rejecting some work to keep the rest fast, priority-based shedding, and serving a degraded but useful response.
How one slow service takes down everything upstream. Covers retry storms, metastable failures, and the patterns that break the chain.
What each check should test, why deep health checks can cause outages, and how orchestrators use them.
How much data you can lose and how long you can be down. Covers backups, point-in-time recovery, and warm vs hot standby.
Active-passive vs active-active regions, data replication between them, latency, failover and data residency. Covers what each costs.
Rolling, blue-green and canary deployments, and feature flags. Covers rolling back safely when a release goes wrong.
Changing a schema under live traffic with expand-and-contract, backfills, and dual reads and writes. Covers the migrations that lock tables.
Breaking things on purpose to prove resilience. Covers fault injection, game days, and limiting the blast radius.
This course contains the use of artificial intelligence.
Most system design courses teach you to pass an interview: memorise a few diagrams, say the right buzzwords, move on. This course goes further. It teaches how real systems actually work, why they are built the way they are, and what breaks when they grow, so you can design them at work, review them with confidence, and still walk into any system design interview prepared.
Every app you use runs on the same handful of ideas: load balancers, caches, queues, replicated and sharded databases, and the rules that keep them correct when machines fail. This course teaches those ideas one at a time, from first principles, until you can design a large system yourself and defend every choice in it.
Each lecture covers one concept in about 6 to 9 minutes. It starts from the problem, builds the mechanism step by step on a hand-drawn diagram, then shows where it breaks and what it costs. Key ideas come back more than once, in different ways, with quick recaps, so they stick.
What you will cover:
- Foundations: requirements, latency numbers, percentiles, estimation, availability and SLOs
- Networking: TCP, DNS, HTTP/1.1 to HTTP/3, TLS, WebSockets, CDNs and proxies
- Traffic: load balancers, L4 vs L7, API gateways, service discovery and service mesh
- APIs: REST, pagination, idempotency, GraphQL, gRPC, webhooks and versioning
- Databases: storage engines, B-trees, LSM trees, transactions, isolation, MVCC and the NoSQL families
- Scaling data: replication, failover, quorums, sharding and consistent hashing
- Caching: strategies, eviction, invalidation, stampedes, Redis and HTTP caching
- Messaging: queues, pub/sub, Kafka, delivery semantics, event sourcing, CQRS, outbox and sagas
- Distributed systems: CAP, PACELC, consistency models, clocks, Raft, Paxos, CRDTs and Bloom filters
- Reliability: retries, circuit breakers, rate limiting, load shedding, disaster recovery and deployments
- Observability and security: metrics, tracing, SLO alerting, OAuth, authorization and encryption
- Infrastructure: Kubernetes, autoscaling, serverless, batch and stream processing
- Design it yourself: the interview method, then ID generators, URL shorteners, rate limiters, key-value stores, caches, message queues, job schedulers, notifications, crawlers and autocomplete
By the end, you will be able to take a vague product idea, turn it into requirements and numbers, sketch a design, go deep where it matters, and explain the trade-offs clearly. The interview becomes the easy part: you will not be reciting answers, you will understand them.
No code to install and no cloud bill. All you need is basic programming experience and curiosity about how real systems work.