THE ASCENT
XP 0 DONE 0 STREAK 0

Load-Bearing: a free, interactive system design course

Learn system design the way it actually sticks: read a focused lesson, then draw the architecture yourself on a drafting canvas that grades your components and connections against the requirements. Fifteen tiers take you from "what happens when you tap a button" through networking, low-level design, storage engines, caching, replication, sharding, service boundaries, consensus, event-driven architecture, warehouses and event sourcing, offline-first clients and sync, inference serving and retrieval, the infrastructure it all lands on, and production reliability, up to staff-level tradeoffs like multi-region topology and live migrations. 106 lessons, 75 checkpoint questions, 19 architecture labs, 12 LLD dojos. Free, no signup — progress is saved in your browser.

Every unit has a page of its own, readable in full without the app: browse the whole curriculum, or start at Ground Zero and work up. The syllabus below links straight into them.

Tier 0 — Ground Zero

No jargon yet. What a system is, what it costs, and the numbers you will use for the rest of your career.

Tier 1 — The Wire

How bytes actually get from a phone in Jaipur to a server in Mumbai, and which protocol to pick when.

Tier 2 — LLD Foundations

Low-level design. Classes, responsibilities, patterns and the concurrency bugs that hide inside a single service.

Tier 3 — The Data Layer

Where the data actually lives. Storage engines, indexes, transactions, and choosing a database for reasons you can defend.

Tier 4 — Scale Out

One box is no longer enough. Balancers, caches, edges, replicas and shards — each introduced as a response to a named bottleneck.

Tier 5 — Service Boundaries

How many services, and where the seams go. The decision that is hardest to reverse, and the one every architect gets judged on.

Tier 6 — Distributed Systems

More than one machine holding state. Consistency, consensus, queues, and transactions that span services.

Tier 7 — Derived Data

The other half of the system. Analytical stores, pipelines, read models rebuilt from history, and who owns the number when three teams report it differently.

Tier 8 — On the Device

The rectangle labelled "user" is a replica you do not control, cannot upgrade and cannot take offline. Local stores, optimistic writes, sync, and conflict resolution on the device.

Tier 9 — Production Reality

The system is live. Now: seeing inside it, budgeting failure, limiting abuse, containing fires, shipping without stopping, and getting the data back.

Tier 10 — Where It Runs

Every diagram in this course lands on physical infrastructure. Compute models and what each costs, reconciliation loops, the geography under "multi-region", meshes, and the pipeline as a production system.

Tier 11 — Probabilistic Systems

Components that return a different answer twice and are sometimes wrong on purpose. GPUs as scarce scheduled capacity, retrieval, vector indexes, feature pipelines, and testing what you cannot assert on.

Tier 12 — Trust Boundaries

Who is calling, what they may do, and keeping tenants out of each other’s data.

Tier 13 — Real Systems

Stop reading. Build. 19 complete systems on the drafting canvas, plus 12 low-level design problems with graded answers.

Tier 14 — Staff Territory

The problems with no clean answer: geography, money, migrations, ambiguity, and the system somebody else designed.

Architecture labs

  • URL shortener — Users submit a long URL and get a short code back. Anyone hitting the short code is redirected. Reads dominate overwhelmingly and must be fast everywhere.
  • Search typeahead — As the user types, return the most popular completions of their prefix. Suggestions come from what people actually searched for, so the index must be rebuilt fr
  • Social news feed — Each user sees a reverse-chronological feed of posts from accounts they follow. A handful of accounts have tens of millions of followers.
  • Chat messaging — One-to-one and group messaging with delivery receipts, offline delivery, and permanent history. Clients hold live connections when the app is open and get push
  • Ride hailing — Riders request a ride from a location. The system finds nearby available drivers, offers the trip, and tracks the vehicle live until drop-off.
  • Video streaming — Creators upload video. Viewers stream it worldwide at a quality matched to their connection. Bandwidth, not compute, is the dominant cost.
  • Payment ledger — Move money between accounts. Every movement must be auditable, balanced, and impossible to duplicate — including when the network fails mid-request and the clie
  • Notification fanout — Other services request notifications. The system respects user preferences and quiet hours, deduplicates, and delivers by push, email or SMS with retries.

Glossary — system design terms explained

Networking & protocols

DNS (Domain Name System)
The internet's phone book. Converts a name like api.example.com into an IP address, because the network delivers to numbers, not names.
IP address
The numeric address of a machine on the internet, e.g. 142.250.71.78. What DNS gives you back.
Recursive resolver
The DNS server that does the legwork for you — asks the root servers, then the .com servers, then the site's own server, and caches the answer. Usually your ISP's, or a public one like 8.8.8.8.
Authoritative server
The DNS server that holds the real, official answer for a domain. Everyone else is caching a copy of what it said.
TTL (Time To Live)
How long a cached answer stays valid before it must be fetched again. In DNS it doubles as a failover-speed dial: low TTL means you can redirect away from a dead server quickly, but every client re-asks constantly.
GeoDNS
Giving different DNS answers based on where the asker is — Indian users get the Mumbai IP, American users the Virginia one. Global routing without touching a server.
TCP (Transmission Control Protocol)
The reliable delivery protocol. Guarantees every byte arrives in order — and makes later bytes wait if an earlier one is lost.
Three-way handshake
How a TCP connection opens: SYN ("want to talk?"), SYN-ACK ("yes, and I hear you"), ACK ("I hear you too"). Costs one full round trip before any real data moves.
Slow start
TCP begins cautiously, sending a little data and ramping up as it confirms the network can cope. Short-lived connections never reach full speed — like a car never getting out of first gear.
UDP (User Datagram Protocol)
Send-and-forget. No ordering, no retransmission, no waiting. The right choice when late data is worthless: live video, voice, games.
TLS (Transport Layer Security)
The encryption layer — the padlock in your browser. Both sides negotiate a secret key so nobody in the middle can read the traffic. TLS 1.3 needs one round trip to set up; 1.2 needed two.
Session resumption
Reconnecting to a server you spoke to recently without redoing the full TLS negotiation. With TLS 1.3 this can cost zero extra round trips.
Round trip (RTT)
One message out and the reply back. The fundamental unit of network cost — Mumbai to Virginia is about 180 ms, and no code makes that faster.
Keep-alive
Reusing one open connection for many requests instead of opening a fresh one each time. Pays the handshake tax once rather than per request — usually the single biggest latency win available.
Connection pooling
Keeping a set of open connections ready to hand out, so application code never waits for a handshake.
Head-of-line blocking
One stuck item holding up everything behind it. In TCP, a lost packet makes all later packets wait — even ones from unrelated streams.
HTTP
The request/response language of the web. Version 1.1 allowed one request at a time per connection; 2 multiplexed many over one; 3 rebuilt the foundation on QUIC.
Multiplexing
Carrying many independent conversations over one connection at the same time, each tagged so they don't mix. The headline feature of HTTP/2.
QUIC
A transport built on UDP that implements reliability per stream. One lost packet stalls only its own stream, not everything — which is why HTTP/3 uses it.
Connection migration
A QUIC connection survives your IP changing — walk out of the house, phone switches Wi-Fi to mobile data, the connection lives. Under TCP it would die.
HPACK
HTTP/2's header compression. Stops the same cookies and user-agent string being re-sent in full on every request.
Content-hashed filename
Naming a file after a hash of its own contents (app.9f2a1c.js). Change the file, the name changes, so caches fetch it immediately — letting you cache forever and still ship updates.

APIs & clients

REST
An API style that models things as resources manipulated with standard HTTP verbs — GET /users/42, POST /orders. Universal, debuggable, and cacheable by the web's existing machinery.
gRPC
A binary, schema-first API framework over HTTP/2. Payloads 30–50% smaller than JSON, generated typed clients, native bidirectional streaming. Great between your own services; browsers can't speak it directly.
Protobuf (Protocol Buffers)
The compact binary format gRPC sends. You define the shape in a schema file and code is generated from it, so a typo becomes a compile error instead of a production bug.
GraphQL
One endpoint where the client sends a query describing exactly the fields it wants. Kills over-fetching and collapses many round trips into one — at the cost of HTTP caching, query-cost control, and resolver-level N+1 problems.
Over-fetching
The endpoint returns 40 fields when the screen needed 3. Wasted bandwidth, especially painful on mobile.
Under-fetching
One screen needs data from three endpoints, so the client makes three sequential calls — each paying full network latency.
N+1 problem
Fetching a list (1 query), then making one extra query per item in it (N queries). The most common performance bug in existence; fixing it is usually a 10× win.
DataLoader
The batching pattern that fixes N+1 in GraphQL resolvers — collect the individual lookups, issue one combined query.
Idempotent
An operation you can repeat safely with the same end result. GET, PUT and DELETE are naturally idempotent; POST ("create a thing") and PATCH ("add ₹50") are not.
Idempotency key
A unique ID the client attaches to a logical operation. The server stores key → result, so a retried request returns the stored answer instead of charging the card twice.
Pagination
Returning a long list in chunks. Offset pagination (LIMIT/OFFSET) gets slower with depth and shows duplicates when the list changes; cursor pagination anchors to a value instead of a position and avoids both.
Cursor
An opaque marker meaning "carry on from this exact item". The basis of stable pagination.
Polling
The client repeatedly asking "anything new?". Short polling asks on a timer; long polling holds the request open until there is news, which feels realtime using ordinary HTTP.
SSE (Server-Sent Events)
One long-lived HTTP connection down which the server pushes events. One direction only, with automatic reconnection and resume-from-last-event built into browsers. Underused.
WebSocket
A persistent two-way pipe — both sides send freely, any time. The right tool when the client also talks frequently (chat, collaborative editing), and the most expensive to operate because servers now hold state.
Push notification service
APNs (Apple) and FCM (Android) — one connection the phone's OS maintains for all apps, so your app doesn't drain the battery holding its own.
API versioning
Additive changes (new optional fields, new endpoints) are free. Removing or changing the meaning of a field breaks callers and needs a new version, usually in the path: /v1/, /v2/.

Low-level design

LLD (Low-level design)
Design inside one service: which classes exist, what each knows, what each does. As opposed to HLD, which is about which servers and databases exist.
HLD (High-level design)
The architecture across services: load balancers, caches, databases, queues, and how requests flow between them.
Invariant
A rule about an object's state that must always hold — "balance never goes negative", "at least one doctor is on call". Good design makes invariants impossible to break rather than merely discouraged.
Tell, don't ask
Give the object a command (account.withdraw(amt)) rather than pulling out its state and deciding for it. Keeps the rule in one place instead of scattered across every caller.
Anaemic object
A class that is nothing but getters and setters, with all logic dumped in a service class. A struct with extra ceremony — the classic OO failure mode.
SOLID
Five design principles: Single responsibility, Open/closed, Liskov substitution, Interface segregation, Dependency inversion. Responses to real pain, not rules to apply pre-emptively.
Single responsibility
A class should have one reason to change — meaning one source of change requests. If pricing changes and schema changes both edit the same file, two stakeholders are colliding in one place.
Open/closed
Open for extension, closed for modification. A new payment type should be a new class, not another branch in a switch statement that handles everyone's money.
Liskov substitution
A subtype must work anywhere its parent does, without surprises. If callers need instanceof checks to know what they got, the hierarchy is lying.
Interface segregation
Small interfaces over fat ones. Any method that exists only to throw "not supported" is the interface admitting it is too big.
Dependency inversion
Business logic defines the interface it needs (PaymentGateway); the detail (StripeGateway) implements it. Makes testing trivial and vendor swaps cheap.
Dependency injection
Handing an object its collaborators from outside instead of letting it construct or fetch them. The modern replacement for Singleton.
Strategy pattern
Put varying behaviour behind an interface, one class per variant, and inject the right one. When you hear "the rules vary", this is the answer — the highest-value pattern in design interviews.
Factory pattern
One place owns the decision of which object to construct and how. Stops new leaking through business logic.
Observer pattern
The publisher announces an event; interested parties subscribe. New subscribers attach without the publisher changing. The in-process ancestor of event-driven architecture.
State pattern
One class per state, each implementing only its legal transitions. Illegal moves become structurally impossible instead of guarded by scattered if-statements.
Decorator pattern
Wrappers implementing the same interface as the thing they wrap, each adding one behaviour — retries, logging, caching. HTTP middleware is Decorator.
Singleton
One instance for the whole program. Also global mutable state in a trench coat: hides dependencies, makes tests order-dependent. Prefer one instance handed out by a DI container.
Composition
An object has collaborators (a vehicle has an engine, a chassis, a controller). Lets each axis of variation change independently — 3+2+3 small classes instead of 18 combinations.
Inheritance
An object is a kind of another. The tightest coupling in OO: the subclass depends on the parent's implementation, not just its interface. Fine when shallow and genuinely is-a; a poor tool for code reuse.
Fragile base class
Changing something private in a parent class breaks a subclass that never mentioned that code. The structural risk of deep inheritance.
Race condition
Two things happening at once where the result depends on timing. The classic shape is check-then-act: two users both see "seat available" and both book it.
Check-then-act
Read a value, decide, then write based on that decision. The gap between the read and the write is where the bug lives. Any code shaped like this is a suspect.
Atomic operation
Indivisible — no other operation can slip inside it. UPDATE seats SET user=:me WHERE id=:s AND user IS NULL makes the check and the write atomic, closing the gap.
Optimistic locking
Assume conflicts are rare. Read a version number, and write with WHERE version = :old. If someone beat you, zero rows match and you retry.
Pessimistic locking
Assume conflicts are common. SELECT ... FOR UPDATE locks the row up front and rivals queue behind you. Correct, but costs throughput and invites deadlock.
Mutex
A lock that lets one thread at a time into a section of code. Orders threads inside one process — which is why synchronized fixes nothing once you run two servers.
Deadlock
Two threads each holding what the other needs, both waiting forever. Prevented by always acquiring locks in the same global order (e.g. lower account ID first).

Storage & databases

B-Tree
The filing-cabinet storage engine: sorted, balanced, updated in place. Even a billion rows sit 3–4 levels deep, so reads are fast and predictable. Used by Postgres, MySQL, Oracle.
LSM tree (Log-Structured Merge tree)
The inbox storage engine: writes land in memory, get flushed to disk as immutable sorted files, and are tidied later by compaction. Spectacular write throughput, more work at read time. Used by Cassandra, RocksDB.
Page
The fixed-size block (4–16 KB) a B-Tree reads and writes. Changing a 200-byte row means rewriting its whole page — that's write amplification.
Write amplification
Writing far more bytes than the data you changed, because storage works in blocks.
WAL (Write-Ahead Log)
Before touching any page, the database appends "about to change X" to a sequential log. A crash mid-write can then be replayed instead of leaving corruption.
SSTable
A Sorted String Table — the immutable file an LSM writes when its in-memory table fills up.
Compaction
The background job that merges LSM files and discards overwritten rows. Necessary — and the source of the read-latency spikes LSM systems are known for.
Bloom filter
A tiny probabilistic structure that answers "is this key here?" with a definitive no or a probable yes. Lets reads skip files instantly, and lets caches reject requests for keys that don't exist.
Index
A second structure sorted by a column, trading write speed and storage for read speed. Like the index at the back of a textbook — someone had to build it, and every edit must update it.
Composite index
An index over several columns, e.g. (tenant_id, created_at). Sorted by the first, then the second — a phone book by surname, then first name.
Leftmost prefix rule
A composite index only helps queries that filter on its leading column(s). Filtering only on the second column is like looking for everyone named Priya in a book sorted by surname.
Covering index
An index containing every column a query needs, so the table itself is never touched. Routinely a several-fold win on hot queries.
Selectivity
How much a value narrows the results. Indexes shine on selective columns; on a 50/50 boolean the planner will correctly ignore your index, because a full scan is cheaper than millions of random reads.
Query planner
The database component that decides how to execute a query. It uses statistics about your data — which go stale, causing "sudden" slowness no code change explains.
EXPLAIN ANALYZE
Shows the actual execution plan with real timings. Hunt for sequential scans on big tables, and for large gaps between estimated and actual row counts.
ACID
Atomicity (all or nothing), Consistency (constraints hold), Isolation (concurrent transactions don't corrupt each other), Durability (committed survives a crash).
Transaction
A group of operations that commit together or not at all. Gives you atomicity of your writes — but not exclusivity of your reads, which is why races survive inside transactions.
Isolation level
A dial, not a guarantee: Read uncommitted → Read committed → Repeatable read → Serializable. Postgres defaults to Read Committed, MySQL to Repeatable Read; neither prevents write skew.
Dirty read
Reading data another transaction wrote but hasn't committed — which then rolls back. You decided based on data that never officially existed.
Non-repeatable read
Reading the same row twice in one transaction and getting different answers, because someone committed in between.
Phantom read
The range version: the same query returns 5 rows, then 6, because a new row appeared inside your range.
Write skew
Two transactions read overlapping state, write to different rows, and together break an invariant neither broke alone — like two doctors each cancelling their shift because the other is on call.
Constraint
A rule the database itself enforces — foreign key, unique index, check. Stronger than any isolation level, because it holds against every writer including the intern's admin script.
Normalisation
Store each fact exactly once; everything else points to it by ID. Updates touch one row, and two copies can't disagree because there's only one.
Denormalisation
Deliberately storing a fact in several places to make reads cheap — copying author_name onto every post to kill a join. Buys fast reads with expensive, eventually-consistent writes.
Reconciliation job
A periodic job that recomputes derived values (like counters) and fixes drift. Standard equipment whenever you maintain a summary incrementally.
NoSQL
Not "SQL but faster" — a family of stores that each dropped some relational guarantees to buy something specific: document, wide-column, key-value, graph.
Document store
Stores JSON-ish documents by key (MongoDB, DynamoDB). Bought: scale and schema flexibility. Paid: no joins, and access patterns must be known upfront.
Wide-column store
Cassandra, HBase. Bought: enormous write throughput and near-linear scaling. Paid: one table per query, aggressive denormalisation, backfills when a new access pattern appears.
Key-value store
Get and set by key, nothing else (Redis, Memcached). Sub-millisecond, perfect for caches, sessions, counters, rate limiters.
Graph database
Neo4j and friends. Built for multi-hop relationship questions — "friends of friends who work at X" — that would be six painful self-joins in SQL.
JSONB
Postgres's binary JSON column type — schemaless documents inside a relational database, which removes most of the historic "we need NoSQL for flexibility" argument.

Scaling & caching

Vertical scaling (scaling up)
Buy a bigger machine — more cores, more RAM. Costs nothing in complexity, which is its real advantage. Has a ceiling, and is a single point of failure.
Horizontal scaling (scaling out)
Add more machines and split the work. No ceiling — but the moment two machines hold state, you inherit an entire field of computer science.
Stateless
Holds no data between requests, so any instance can serve any request. Stateless things scale out for free; stateful things do not.
Load balancer
Decides which server gets each request. Two jobs: spread traffic evenly, and — more important — stop sending traffic to dead servers.
Layer 4 / Layer 7
L4 routes on IP and port without reading the request — blazingly fast, but blind. L7 reads the full HTTP request, so it can route by path, terminate TLS, retry elsewhere, and enforce limits.
API gateway
Essentially an L7 load balancer with authentication, rate limiting and quota duties attached.
Round robin
Deal requests out in turn. Simple, and silently assumes every request costs the same — which they never do.
Least connections
Send each request to whichever backend has fewest in flight. In-flight count is a good live proxy for "busy". The sane default.
Health check
The probe asking a backend "are you alive?". Shallow checks miss a useless-but-running server; deep checks can fail everywhere at once and remove your whole fleet over a five-second blip.
Liveness vs readiness
Liveness: is the process running (if not, restart it). Readiness: should traffic come here right now. Separating them avoids restarting a server that is merely busy.
Sticky session
Pinning a user to "their" server because that's where their session lives. Breaks deploys and scaling. The real fix is moving session state out into Redis.
Cache
A small, fast store of recently-used answers. Memory beats disk by ~100× and beats a cross-continent trip by far more, which is why caching is the highest-leverage optimisation there is.
Cache-aside
The app checks the cache; on a miss it reads the database and fills the cache. The simplest and most common strategy.
Read-through
Same behaviour as cache-aside, but the cache itself fetches on a miss, so the logic lives in one layer.
Write-through
Every write goes to cache and database together, synchronously. Never stale; every write pays double latency.
Write-behind
Write to cache, acknowledge immediately, flush to the database later. Fast — and if the cache dies before flushing, those writes are gone. Fine for view counters, never for payments.
Eviction
Deciding what leaves a full cache. LRU drops the least recently used; LFU drops the least frequently used, protecting a stable hot set from being flushed by one-off requests.
Cache stampede (thundering herd)
One hot key expires and thousands of requests all miss and all recompute the same value at once, flattening the database. Fixed with a per-key lock plus jittered TTLs.
Cache penetration
Requests for keys that exist nowhere — often an attacker cycling made-up IDs. Every request misses. Fixed by caching the negative result, or a bloom filter of real keys.
Cache avalanche
The cache node dies or restarts empty, and 100% of traffic lands on a database sized for 5% of it.
Cache invalidation
Making the cached copy stop being a lie when the data changes. TTL (let lies expire), explicit deletion on write (precise, easy to forget a path), or versioned keys (bump user:42:v8 and abandon the old entry).
Hit rate
The fraction of requests the cache answers. Below ~80%, most requests pay the cache check and the database read, and the cache may be costing you more than it saves.
CDN (Content Delivery Network)
A cache with geography. Hundreds of points of presence worldwide serve users from nearby, so only occasional refills make the long trip to your origin.
PoP (Point of Presence)
One of the CDN's local sites — the server a few dozen kilometres from your user rather than a few thousand.
Origin
Your actual server, behind the CDN. The CDN only reaches it on a miss.
Cache-Control
The HTTP header that dictates caching. max-age for everyone, s-maxage for shared caches only, stale-while-revalidate to serve stale instantly and refresh in the background, and private for anything user-specific.
Replication
Keeping copies of data on multiple machines, for read capacity and for survival. Copies take time to copy — hence lag.
Leader / follower
One node accepts all writes and streams its change log to followers, which serve reads. The default arrangement nearly everywhere.
Replication lag
How far behind the followers are. Milliseconds normally, seconds under load — and the cause of the classic "I posted a comment and it vanished" bug.
Read-your-own-writes
The promise that you always see your own changes immediately, even if others see them a second late. Usually implemented by routing a user's reads to the leader briefly after they write.
Failover
Promoting a follower when the leader dies. Needs the most caught-up follower, all writers redirected, and the old leader stopped from accepting writes if it wakes up.
Split brain
Two nodes both believing they are the leader, producing two divergent histories of the same data. The nightmare that consensus algorithms exist to prevent.
Multi-leader
Accepting writes in several places, so users everywhere get local write latency — and the same record can be edited concurrently in two places, requiring conflict resolution.
Leaderless
No leader at all (Cassandra, DynamoDB). Clients write to several nodes and read from several; overlap between the sets provides the guarantee.
Sharding
Splitting the data itself across machines, each holding a slice. Solves the unsolvable — and is the most expensive, least reversible move available.
Shard key
The field that decides where a row lives. Must spread load evenly and keep data queried together on one shard. Choose it from the dominant access pattern, not the primary key.
Consistent hashing
Hash nodes and keys onto a ring; each key belongs to the first node clockwise. Adding a node moves ~1/N of the data instead of the ~80% that hash % N would move.
Virtual node
Giving each physical machine 100–200 positions on the hash ring, so load spreads smoothly and a departing machine's share sprinkles across all survivors rather than landing on one neighbour.
Hot shard / hot key
Hashing balances keys, not load per key. One celebrity or one enormous tenant makes their shard glow while its siblings idle.
Snowflake ID
A distributed unique ID: timestamp + machine ID + sequence. Unique without coordination and roughly time-sortable — necessary once auto-increment stops working across shards.

Distributed systems

Network partition
Machines that should be able to talk can't — a cut cable, a bad route. Not optional: networks fail, so "we'll avoid partitions" is not a design choice.
CAP theorem
During a partition, a cut-off node must choose: refuse to answer (stay consistent) or answer possibly-stale data (stay available). Says nothing about the 99.9% of the time the network is fine.
PACELC
"If Partition: Availability or Consistency; Else: Latency or Consistency." The second half is the useful half — making writes globally visible costs latency even with a perfect network.
Strong consistency
Everyone sees the latest write immediately. Requires coordination between nodes, which means a round trip inside every write — across regions, a permanent 100+ ms floor.
Eventual consistency
If writes stop, replicas converge — eventually. No promise about when, or about the order you observe along the way.
Linearizable
The strongest model: the system behaves as if there were one copy, each operation taking effect instantaneously. Also the most expensive.
Causal consistency
Related operations appear in order everywhere — a reply never precedes its message. Much cheaper than linearizable, and usually what people mean when they say they need consistency.
Monotonic reads
Time never runs backwards for one reader. Without it, a refresh can make a comment appear, vanish, and reappear as you bounce between replicas.
Quorum
With N replicas, writing to W and reading from R: if W + R > N, the read and write sets must overlap, so every read touches a node with the latest write. N=3, W=2, R=2 is the classic.
Last-write-wins (LWW)
Resolve conflicts by keeping the later timestamp. Simple — and it silently deletes the losing write. Data loss wearing a tie.
Version vector
Per-node bookkeeping that lets the system detect "these two writes were concurrent, neither knew about the other" and hand both to the application instead of guessing.
CRDT (Conflict-free Replicated Data Type)
A data structure built so concurrent updates merge deterministically in any order, with no coordination. How collaborative editors converge after offline edits.
Consensus
Getting several machines to agree on one value while some are crashed and the network eats messages. Provably hard; Raft is the algorithm to understand.
Raft
A consensus algorithm designed to be understandable. Nodes are Follower, Candidate or Leader; the leader replicates a log, and an entry is committed once a majority acknowledge it.
Majority / quorum size
Any two majorities of the same cluster overlap in at least one node — which is why nothing committed can ever be lost. Also why clusters come in odd sizes: 4 nodes tolerate the same single failure as 3.
Term
Raft's logical era number, incremented at each election. Lets nodes recognise and ignore messages from a stale leader.
Heartbeat
The leader's periodic "still here" message. When it stops arriving, a follower times out and starts an election.
etcd / ZooKeeper / Consul
Production consensus services. You will operate these — Kubernetes runs on etcd — far more often than you will implement Raft.
Distributed lock
Mutual exclusion across machines. Harder than it looks: a GC pause can outlast the lock's TTL, leaving two clients both convinced they hold it.
Fencing token
A monotonically increasing number issued with each lock grant, which the protected resource checks — rejecting any write carrying a lower token than one it has already seen. Without it, a distributed lock is a strong suggestion.
Message queue
A post office: each message goes to one consumer and is deleted once acknowledged. For distributing work — resize these images, send these emails.
Event log
A newspaper archive: an ordered, durable, replayable sequence (Kafka, Kinesis). Many independent consumer groups read the same events, and a new consumer can replay history from the beginning.
Offset
A consumer's bookmark in the log — how far it has read. Because nothing is deleted on read, rewinding the offset replays history.
Partition
A slice of a Kafka topic. Ordering is guaranteed within a partition only — never across them.
At-least-once
Retry until acknowledged. Nothing is lost and duplicates are guaranteed, because a worker can crash after doing the work but before acknowledging.
Exactly-once
As an end-to-end transport guarantee, it does not exist. What exists is at-least-once delivery plus idempotent consumers.
Consumer lag
How far behind the consumers are running. In event-driven systems it is usually the earliest warning signal you have — alert on it like you alert on errors.
Backpressure
What you do when producers outpace consumers. An unbounded backlog is an outage on a payment plan.
Poison message
One malformed message that crashes its consumer, gets redelivered, and crashes it again forever while everything queues behind it.
Dead letter queue (DLQ)
Where a message goes after N failed attempts, so a human can look at it and the line can move. A queue without one has a self-destruct button.
Two-phase commit (2PC)
Coordinator asks everyone "prepared?", then orders "commit". Atomic in theory; in practice participants hold locks between the phases and block indefinitely if the coordinator dies.
Saga
A big transaction decomposed into local ones, each with a compensating action that semantically reverses it. The practical answer when no transaction can span your services.
Compensation
Not a rollback. A rollback erases history; a compensation is a new action in a world where the original visibly happened — you can't un-send an email, you send an apology.
Choreography vs orchestration
Choreography: each service reacts to the previous one's events, no boss — loosely coupled, and nobody can tell you what the flow is. Orchestration: one coordinator drives it explicitly — readable and debuggable, but it's a component you now own.
Transactional outbox
Write the event into an outbox table in the same local transaction as the business data, then have a relay publish it with retries. Fixes the silent bug where the database commits but the event never publishes.
Change data capture (CDC)
Driving downstream systems from a database's change stream rather than from application code, so the two can't silently diverge.

Production & reliability

Availability
Quoted in nines, and each nine is really a downtime budget: 99.9% is 8.77 hours a year, 99.99% is 52 minutes. Each extra nine roughly 10×s the cost.
Correlated failure
Redundancy only multiplies safety if failures are independent. Two copies in the same rack, running the same bad deploy, using the same expiring certificate, fail together.
Graceful degradation
When a non-essential dependency dies, show something reduced rather than failing the whole page — generic recommendations instead of personalised ones.
Observability
Enough signal coming out that you can answer questions you never anticipated. Monitoring tells you a known thing broke; observability lets you investigate the unknown one.
Metrics / logs / traces
The three signals. Metrics: cheap numeric time series, good for alerts, but aggregates. Logs: rich per-event detail, expensive at volume. Traces: one request's journey across every service, the only tool that answers "which of the eleven hops was slow?".
Request ID
A single identifier threaded through every service, so you can pull every log line for one user's one bad experience.
RED / USE
RED per service: Rate, Errors, Duration. USE per resource: Utilisation, Saturation, Errors. Saturation — how much work is queued — is the leading indicator.
Percentile
p99 means 99% of requests were faster than this. Averages are lies told by fast requests: p50 of 40 ms with p99 of 3 s averages to a healthy-looking 70 ms while one user in a hundred waits three seconds.
Tail latency
The slow end of the distribution. With 100 backend calls per page, ~63% of page loads hit at least one p99 response — at fan-out, the tail is the typical experience.
SLI / SLO / SLA
SLI: what you measure. SLO: your internal target for it. SLA: a contract with money attached. Always keep the SLA looser than the SLO, so you hit your own alarm before you owe anyone.
Error budget
A 99.9% SLO explicitly grants 0.1% failure — about 43 minutes a month. Not a threshold to fear: a budget to spend on deploys, migrations and experiments. Budget left, ship; budget gone, fix reliability.
Burn rate
How fast you're consuming the error budget. Burning at 14× kills the month in two days — page someone. Burning at 1.5× is a Monday ticket. Catches both the fire and the slow leak.
Rate limiting
Capping how much one caller may do. Protects against abuse, against buggy clients stuck in retry loops (more common), and against one tenant starving everyone else.
Token bucket
A bucket of B tokens refilling at r per second; each request takes one. An idle client accumulates tokens and can burst, while the refill rate caps the sustained rate. The right default for APIs.
Leaky bucket
Drains at a constant rate, smoothing bursts out entirely. Right when the downstream needs steady flow, wrong when bursts are legitimate.
Sliding window counter
Blends the current and previous fixed windows by overlap, approximating an exact sliding log with two integers instead of a million timestamps. What most production limiters actually run.
429 / Retry-After
The "too many requests" status, plus a header telling the client when to come back. That header turns a client that would hammer you into one that waits.
Timeout
Mandatory on every network call. Without one, a hanging dependency exhausts your threads and connections, and its problem becomes your outage. Set it from the dependency's measured p99.
Retry storm
A service degrades, all its clients retry three times, offered load triples exactly when the service is weakest. The rescue party trampling the patient.
Exponential backoff
Waiting 1s, 2s, 4s between retries instead of hammering.
Jitter
Randomising retry delays so clients that failed together don't retry together in synchronised waves. The difference between recovery and resonance.
Retry budget
Capping retries at ~10% of traffic. Exceeding it means the dependency is genuinely down — stop resuscitating and fail fast.
Circuit breaker
Watches the failure rate and, past a threshold, opens: calls fail instantly with no network attempt. Stops you bleeding resources into a corpse, and gives the sick dependency room to recover.
Fallback
What you serve while the breaker is open — the cached copy, the generic list. An open breaker with no fallback is just a faster path to the same error screen.
Bulkhead
Named for ship compartments: separate connection and thread pools per dependency, so a hanging payments API exhausts its own 20 connections and search never feels it.
Load shedding
Rejecting low-priority traffic cheaply so the capacity that remains serves real users properly. Triage beats serving everyone badly.
Blast radius
How much breaks when one thing breaks. Most reliability patterns — bulkheads, canaries, cells — are about shrinking it.

Shipping, migration & staff topics

Rolling deploy
Replace instances a few at a time. Cheap — and note the fine print that drives everything else: both versions run simultaneously, sharing one database.
Blue-green deploy
Build a complete second environment, test it, switch all traffic at once. Rollback is re-flipping the switch; the risk is that a subtle bug meets 100% of users simultaneously.
Canary deploy
Route 1% of traffic to the new version and watch. A bad deploy hurts 1% of users for a few minutes instead of everyone. The best default.
Feature flag
Separates deploying (code reaches servers) from releasing (users experience it). Ship code dark, enable gradually, and roll back with a config toggle in seconds. Delete flags after rollout — five interacting flags is 32 untested combinations.
Expand–migrate–contract
The safe schema change: add the new column and write both, backfill in throttled batches, then switch reads and later drop the old. Every intermediate state works with every deployed version.
Backfill
Copying historical data into a new column or store. Always throttled — an unthrottled backfill is a self-inflicted DDoS on your live database.
Strangler fig
Replace a legacy system route by route behind a routing layer, until nothing reaches the old one. Each route is individually reversible — the antidote to the Big Rewrite.
Dual write
During a datastore migration, writing to both old and new while reads stay on the old.
Shadow read
Read from both systems against real production traffic, serve the trusted one, and log every mismatch. Where reality confesses its undocumented edge cases — the step teams skip and regret.
Active–passive
One region serves, the other stands by replicating. Simplest — and the standby is usually quietly broken, because nobody ever uses it. Fail over on purpose, quarterly.
Active–active
Both regions serve. Partitioned by user home region, conflicts are structurally impossible and everyone gets local writes — the sweet spot. Fully replicated, any region writes anything, and you owe conflict resolution on everything.
RPO (Recovery Point Objective)
How much data you lose in a disaster. With replication lagging 30 seconds, failover loses about 30 seconds of writes. Driving it to zero means synchronous replication and a cross-region round trip on every write.
RTO (Recovery Time Objective)
How much time until you're serving again. Automated failover: minutes. Paging a human with a good runbook: an hour.
Data residency
Legal requirements that data about a country's citizens stays on its soil. Not an engineering judgement — a constraint, and a common one in Indian fintech.
Egress
Data leaving the cloud (and often crossing availability zones). Free to send data in, expensive to send it out — the innocent arrows on your architecture diagram are the bill.
Storage class
Hot / infrequent-access / archive tiers, differing by more than 10× per GB. A lifecycle policy that demotes data by age is often the highest-ratio saving in the company.
Spot instance
Heavily discounted capacity that can be taken away at any moment. Ideal for interruptible work that checkpoints and resumes — which is exactly what queue-based designs already are.
Autoscaling
Adding and removing instances to follow the traffic curve, instead of renting your peak fleet at 3am.
Reversibility
How hard a decision is to undo. Denormalisation is reversible in an afternoon; sharding is a multi-quarter unwind. Reversible calls can be made on a hunch; irreversible ones earn measurement and a written justification.
Tradeoff essay
The four-line format that forces honesty: DECISION, BECAUSE (with numbers), COST (what you gave up, in user-visible terms), REJECTED (what you weighed and why not).

Estimation & interview craft

QPS (Queries Per Second)
The standard unit of load. 1 million requests/day ≈ 12 QPS average — and peak is typically 2–5× the average, so design for peak.
Latency vs throughput
Latency is how long one operation takes; throughput is how many you handle per second. Batching often improves throughput while making latency worse.
Orders of magnitude
The point of the latency numbers isn't precision — nobody cares whether it's 11.6 or 12 QPS. They care whether it's 12 or 12,000, because those are different architectures.
Read:write ratio
How many reads per write. Consumer products run 10:1 to 1000:1. Say yours out loud, then design for it — a 1000:1 system and a 1:1 system need different architectures.
Working set
The subset of data actually being accessed right now. If it fits in memory, a single well-tuned database serves tens of thousands of QPS.
Critical path
The chain of dependencies a request must traverse to succeed. Every extra hop on it multiplies into your availability ceiling — four 99.9% services in series is 99.6%.
Single point of failure (SPOF)
A component whose death takes everything down. The audit that finds them is boring and priceless: for each component, ask "when this vanishes, does the system still answer?"
Fan-out
One action triggering many. On write: a post copied into every follower's feed — great for normal users, catastrophic for a celebrity with 80 million followers. On read: one page load making 100 backend calls, which is what makes tail latency dominate.
Access pattern
Which queries actually run, and how often. The single most repeated principle in this course: access patterns choose the database, the index, and the shard key — not the other way round.
Bottleneck
The one thing that breaks first as load grows. Every component in a good design is a named response to one — never "let's add Redis because Redis is good".
Non-functional requirement
Latency, availability, consistency, cost, compliance. The requirements that shape the architecture, as opposed to the features that shape the API.
Back-of-the-envelope
Rough arithmetic done in thirty seconds to size a system. 1M users × 1 KB = 1 GB; 86,400 seconds a day, round to 100k. Enough to tell you whether bandwidth or computation is your real cost.
Geospatial index
Geohash, H3 or QuadTree — encodings that map 2D proximity onto a sortable key, turning "find nearby drivers" from a scan of everyone into a prefix or cell lookup.
Trie
A prefix tree. With top-k suggestions precomputed at each node and held in memory, it answers typeahead queries in microseconds.
Double-entry ledger
Every transfer writes balanced debit and credit entries to an append-only journal; balances are derived, with periodic checkpoints for speed. Overwriting a balance destroys the audit trail — which is why money is never stored as a mutable column.

Frequently asked questions

Is Load-Bearing really free?

Yes. Every lesson, checkpoint, architecture lab and LLD dojo is open from the start. There is no signup, no account, no paywall and no trial period.

Do I need an account, and where is my progress stored?

There is no account. Your XP, completed units, checkpoint scores and lab results are saved in your own browser’s local storage on the device you are using. Nothing is sent to a server. Clearing your browser’s site data resets your progress, and it does not follow you to a different browser or device.

Does the course cover both high-level and low-level design?

Both. Tier 2, LLD Foundations, covers responsibility, SOLID, design patterns, composition and concurrency, and 12 LLD dojos drill those separately. High-level design runs from Tier 3 onward through storage engines, caching, replication, sharding, service boundaries, consensus, event-driven architecture, the analytics plane, client-side and offline-first design, inference serving and retrieval, the infrastructure everything lands on, and staff-level tradeoffs.

How long does the course take?

The 106 lessons total about 23 and a half hours of reading across fifteen tiers. The 75 checkpoint questions, 19 architecture labs and 12 LLD dojos are open-ended and take as long as you spend drawing and revising your designs.

Will this help with system design interviews?

It is built for it. The 19 architecture labs are the prompts that come up most often — URL shortener, search typeahead, social news feed, chat messaging, ride hailing, video streaming, payment ledger, notification fanout, multi-tenant SaaS, inventory and booking, metrics pipeline, distributed scheduler, collaborative editor and search with reindex — and you draw each one rather than read a solution. Tier 0 includes a lesson on structuring the 45-minute interview itself.

What background do I need before starting?

Tier 0 assumes no distributed systems knowledge and starts from what happens when you tap a button. You need to be able to read code and know roughly what a server and a database are. Later tiers build on each floor below, and a checkpoint gates each one, so the ordering keeps you from getting out of your depth.

Topics covered include: load balancing, caching strategies and cache stampedes, CDNs, database indexes and query plans, B-Tree vs LSM storage engines, SQL vs NoSQL, transactions and isolation levels, replication and read replicas, sharding and consistent hashing, CAP and PACELC, consistency models, Raft consensus, Kafka and message queues, saga and outbox patterns, observability and SLOs, rate limiting, circuit breakers, zero-downtime deployment, SOLID principles, design patterns, and concurrency control — with system design interview preparation throughout.