System Design at Scale
Glossary
Every System Design at Scale term in plain words, with the module that teaches it. Inside modules, any word with a dotted underline explains itself.
System Design at Scale · 92 terms
- Autoscaling
- Automatically adding servers when load rises and removing them when it falls, based on a metric such as CPU or queue length.
- Learn it in “Horizontal scaling & autoscaling” →
- Availability
- The share of time a system is working and usable, often written as a number of nines: 99.9% (three nines) allows about 44 minutes of downtime a month.
- Learn it in “Availability math” →
- Availability zone
- One or more data centres within a cloud region, with separate power, cooling and networking, close enough to others for fast links. Spreading copies across zones survives a building-level failure.
- Learn it in “Availability math” →
- Back-of-the-envelope estimate
- A quick, rough calculation (users, requests per second, storage, bandwidth) to find the right order of magnitude before designing.
- Think of it as: Estimating how many cups of tea your office drinks a year from how many people work there.
- Learn it in “Back-of-the-envelope estimation” →
- Backpressure
- Signalling upstream to slow down when a component can't keep up, instead of letting work pile up without limit.
- Think of it as: A kitchen telling the host to stop seating tables for a few minutes.
- Learn it in “Queues & streams” →
- Base62
- Writing numbers with 62 symbols (0–9, a–z, A–Z), common for short IDs. Seven characters give about 3.5 trillion combinations.
- Learn it in “Design a URL shortener” →
- Birthday paradox
- Random values collide much sooner than intuition suggests: among n random keys from N possibilities, a clash becomes likely once n is around the square root of N.
- Think of it as: In a room of 23 people, it's more likely than not that two share a birthday.
- Learn it in “Design a URL shortener” →
- Blameless postmortem
- A written review after an incident describing what happened, why the system allowed it, and what will change, without blaming individuals.
- Learn it in “Capstone: the outage” →
- Bulkhead
- Giving each dependency its own limited pool of threads or connections, so one misbehaving dependency can't use up resources everyone else needs. Named after a ship's watertight compartments.
- Learn it in “Timeouts, circuit breakers & rate limiting” →
- Cache
- A fast store of recently or frequently used answers, so they don't have to be fetched or computed again.
- Think of it as: Keeping today's most-ordered dishes ready on the pass.
- Learn it in “Caching patterns” →
- Cache stampede (thundering herd)
- When a popular cached item expires and many requests miss at once, all hitting the database for the same data.
- Learn it in “Eviction, invalidation & stampedes” →
- Cache-aside (lazy loading)
- The app checks the cache first; on a miss it reads the database and stores the result in the cache. On a write it updates the database and deletes the cached copy.
- Learn it in “Caching patterns” →
- CAP theorem
- During a network partition, a distributed system can't be both perfectly consistent (linearizable) and available at every working node: it must choose.
- Learn it in “Consistency, CAP & quorums” →
- Cascading failure
- A failure that spreads: one slow or broken component ties up the resources of everything calling it, until those callers fail too.
- Think of it as: Every call-centre agent stuck on hold with one slow department, so nobody answers new calls.
- Learn it in “Timeouts, circuit breakers & rate limiting” →
- CDN
- Content delivery network: servers around the world that keep copies of files close to users, so they download faster.
- Think of it as: Stocking popular books in every neighbourhood library instead of one central one.
- Learn it in “CDNs & the edge” →
- Circuit breaker
- A wrapper around calls to a dependency that stops calling it for a while after too many failures (failing fast instead), then lets a trial call through to see if it has recovered.
- Learn it in “Timeouts, circuit breakers & rate limiting” →
- Consistency model
- The rules for what a read may return after writes, from linearizable (always the latest) to eventual (copies agree once writes stop).
- Learn it in “Consistency, CAP & quorums” →
- Consistent hashing
- Placing servers and keys on a ring of hash values, with each key owned by the next server around the ring, so adding or removing a server moves only a small share of keys.
- Learn it in “Partitioning & sharding” →
- Consumer group
- A set of consumers sharing the work of reading a log. Each partition is read by one member of the group; every group gets all the messages.
- Learn it in “Queues & streams” →
- CQRS
- Command Query Responsibility Segregation: using one model for writes and separate, purpose-built models for reads, usually kept in step by events.
- Learn it in “Event-driven architecture” →
- Cursor pagination
- Fetching the next page relative to the last item seen ('20 posts older than post X') instead of by position ('skip 40'), so pages stay correct when items are added or removed.
- Learn it in “Design a news feed” →
- Data residency
- Rules (legal or contractual) about which countries or regions data may be stored or processed in, including backups and replicas.
- Learn it in “Multi-region & disaster recovery” →
- Dead-letter queue (DLQ)
- A separate queue where messages that keep failing are moved, so they stop blocking or wasting consumers and can be inspected and replayed later.
- Learn it in “Queues & streams” →
- Disaster recovery (DR)
- Plans and systems for restoring service after a large failure, such as losing a whole data centre or cloud region, usually by recovering in another region.
- Learn it in “Multi-region & disaster recovery” →
- Dual write
- Writing to two systems (such as a database and a message broker) without a shared transaction, so a crash in between leaves them inconsistent.
- Learn it in “Transactions across services” →
- Edge location (PoP)
- A CDN's servers in a particular city (a point of presence) that serve cached content to nearby users.
- Learn it in “CDNs & the edge” →
- Error budget
- The amount of unreliability an SLO allows (for 99.9%, 0.1% of requests). Teams spend it on releases and experiments, and slow down when it runs out.
- Learn it in “Observability & SLOs” →
- Event
- A message saying that something happened (named in the past tense, such as OrderPlaced). The sender doesn't know or care who reacts. Contrast with a command, which asks one service to do something.
- Learn it in “Event-driven architecture” →
- Event log (stream)
- An append-only sequence of messages kept for a set time. Readers track their own position, many readers can each read everything, and old messages can be replayed. Kafka, Kinesis and Event Hubs work this way.
- Think of it as: A till-receipt roll that the kitchen, bar and accounts desk each read at their own pace.
- Learn it in “Queues & streams” →
- Event sourcing
- Storing every change as an event and treating that sequence as the source of truth. Current state is computed by replaying the events.
- Think of it as: A bank statement: the balance is the sum of every transaction.
- Learn it in “Event-driven architecture” →
- Eviction policy
- The rule a full cache uses to decide what to remove, such as least recently used (LRU) or least frequently used (LFU).
- Think of it as: Deciding what to throw out of a full fridge.
- Learn it in “Eviction, invalidation & stampedes” →
- Exponential backoff
- Waiting longer after each failed attempt, typically doubling the wait each time, up to a cap. Usually combined with jitter.
- Learn it in “Retries, idempotency & delivery guarantees” →
- Failover
- Switching to a standby (such as promoting a replica to leader) when the active node fails.
- Learn it in “Replication” →
- Fan-out
- Handling one request by sending sub-requests to many servers and combining their answers. The whole request waits for the slowest.
- Learn it in “Latency, throughput & percentiles” →
- Health check
- A regular test a load balancer runs against each server (such as requesting /health) to decide whether to keep sending it traffic.
- Learn it in “Load balancing” →
- Hit ratio
- The share of requests a cache answers itself, without going back to the origin.
- Learn it in “CDNs & the edge” →
- Hot key
- A single key so popular that the one node storing it becomes overloaded while others sit idle.
- Learn it in “Eviction, invalidation & stampedes” →
- Idempotency key
- A unique ID the client sends with a request and reuses on every retry. The server stores its answer per key and returns the same answer for repeats instead of doing the work again.
- Think of it as: Writing the invoice number on a cheque, so the biller can spot a duplicate.
- Learn it in “Retries, idempotency & delivery guarantees” →
- Inventory hold
- Reserving an item for one buyer while they finish checking out, released automatically if they don't pay within a time limit.
- Learn it in “Design a flash-sale booking system” →
- Jitter
- A small random variation added to timers (TTLs, retry delays) so that many clients don't all act at the same moment.
- Learn it in “Eviction, invalidation & stampedes” →
- Latency
- How long one request takes, from asking to getting the answer.
- Think of it as: How long you wait at the counter for your coffee.
- Learn it in “Latency, throughput & percentiles” →
- Leader and followers
- A replication set-up where one node (the leader, or primary) accepts writes and the others (followers, or replicas) copy its changes.
- Learn it in “Replication” →
- Lease (cache)
- A token a cache hands to a client that missed, allowing it to fill that key. A delete cancels the token, so a slow client can't write back stale data; it also limits refills during a stampede.
- Learn it in “Caching patterns” →
- Little's Law
- In any stable system, the average number of items inside equals the arrival rate times the average time each spends inside: L = λ × W.
- Think of it as: One customer a minute, each staying five minutes: five people in the café.
- Learn it in “Latency, throughput & percentiles” →
- Load balancer
- A component that receives requests at one address and spreads them across many servers.
- Think of it as: A host at a restaurant door showing each guest to a free table.
- Learn it in “Load balancing” →
- Log
- A timestamped record of an individual event, such as 'order 7731 failed: card declined'. Detailed, but costly to store and search at scale.
- Learn it in “Observability & SLOs” →
- Long polling
- The client makes a request that the server holds open until it has news (or a timeout passes); the client then immediately asks again.
- Learn it in “Design real-time chat” →
- Lost update
- When two operations read the same value, both change it, and the second write silently overwrites the first.
- Learn it in “Design a flash-sale booking system” →
- Managed service
- A cloud service where the provider runs the software for you (patching, backups, failover), while you configure and use it.
- Learn it in “Building blocks on AWS, Google Cloud, Azure & open source” →
- Metastable failure
- An outage that keeps going after its trigger has passed, because the system's own reactions (such as retries or cold caches) sustain the overload.
- Learn it in “Capstone: the outage” →
- Metric
- A number measured over time, such as requests per second or 99th-percentile latency. Cheap to store and ideal for dashboards and alerts.
- Think of it as: A car's speedometer and fuel gauge.
- Learn it in “Observability & SLOs” →
- Network partition
- A failure where parts of a system are running but can't communicate with each other.
- Think of it as: Two bank branches whose phone line has gone dead.
- Learn it in “Consistency, CAP & quorums” →
- Observability
- How well you can understand what a running system is doing, and why, from the data it emits: mainly metrics, logs and traces.
- Learn it in “Observability & SLOs” →
- Offset
- A reader's position in a log partition: the number of the next message it will read. Moving it back replays messages.
- Learn it in “Queues & streams” →
- Percentile (p50, p99)
- The value below which a given share of measurements fall. p99 latency = 99% of requests were faster than this.
- Think of it as: If you're in the 90th percentile for height, 90% of people are shorter than you.
- Learn it in “Latency, throughput & percentiles” →
- Polyglot persistence
- Using several kinds of database in one system, each for the data it suits best.
- Learn it in “Choosing a database” →
- Presence
- Knowing which users are online right now, and which server each one is connected to, so messages and 'online' dots can reach them.
- Learn it in “Design real-time chat” →
- Publish/subscribe (pub/sub)
- A messaging style where producers publish messages to a topic and every subscriber to that topic gets a copy, without producers knowing who the subscribers are.
- Think of it as: Posting in a group chat instead of phoning each person.
- Learn it in “Event-driven architecture” →
- QPS / requests per second
- Queries (or requests) per second: the basic measure of how much load a system handles.
- Learn it in “Back-of-the-envelope estimation” →
- Queue
- A buffer where one part of a system leaves work for another to pick up later, so neither has to wait for the other.
- Think of it as: The ticket rail in a kitchen: waiters clip orders on, cooks take them when ready.
- Learn it in “Queues & streams” →
- Quorum
- The number of copies that must respond for a write (W) or read (R) to succeed. If R + W > N, reads overlap the latest successful write.
- Learn it in “Consistency, CAP & quorums” →
- Rate limit
- A cap on how many requests a client may make in a period. Requests over the limit are rejected (HTTP 429) or delayed.
- Learn it in “Timeouts, circuit breakers & rate limiting” →
- Replica
- A copy of a database kept up to date from the original, used to share reads or to take over if the original fails.
- Learn it in “Replication” →
- Replication lag
- How far a replica is behind the leader: changes made on the leader that the replica hasn't applied yet.
- Learn it in “Replication” →
- Retry budget
- A limit on retries as a share of normal requests (for example 10%), so that retries help with occasional errors but can't multiply load during an outage.
- Learn it in “Retries, idempotency & delivery guarantees” →
- Retry storm
- When many clients retry failed requests at once, multiplying the load on a service that is already struggling, which can keep it down after the original problem has passed.
- Learn it in “Retries, idempotency & delivery guarantees” →
- RPO (recovery point objective)
- The most data you can afford to lose in a disaster, measured as time: an RPO of 5 minutes means losing at most the last 5 minutes of changes.
- Learn it in “Multi-region & disaster recovery” →
- RTO (recovery time objective)
- The longest you can afford to be down after a disaster before service is restored.
- Learn it in “Multi-region & disaster recovery” →
- Saga
- A long business transaction split into local steps, each committed on its own, with a compensating action to undo each step's effect if a later step fails.
- Think of it as: Booking a flight, hotel and car separately, and cancelling the ones you booked if one falls through.
- Learn it in “Transactions across services” →
- Scalability
- A system's ability to handle more load (users, requests, data) by adding resources, without being redesigned.
- Think of it as: A restaurant that can open more tables and hire more cooks when the queue grows.
- Learn it in “What "at scale" means” →
- Scaling out (horizontal scaling)
- Handling more load by adding more machines that share the work.
- Think of it as: Adding more cars instead of buying a bigger one.
- Learn it in “What "at scale" means” →
- Scaling up (vertical scaling)
- Handling more load by moving to a bigger machine: more CPU, memory or disk.
- Think of it as: Replacing your car with a bus.
- Learn it in “What "at scale" means” →
- Schema registry
- A service that stores the versions of each message schema and rejects new versions that would break existing producers or consumers.
- Learn it in “Event-driven architecture” →
- Single point of failure
- One component whose failure takes the whole system down.
- Think of it as: The only bridge into town.
- Learn it in “Load balancing” →
- SLA (service level agreement)
- A contract stating the availability a provider promises and what it pays back (usually service credits) if it misses. It is compensation, not a guarantee.
- Learn it in “Availability math” →
- SLI (service level indicator)
- A measurement of service quality as users experience it, such as the share of requests that succeed or finish within 300 ms.
- Learn it in “Observability & SLOs” →
- SLO (service level objective)
- A target for an SLI over a period, such as '99.9% of checkout requests succeed over 30 days'. Chosen by the team; stricter than any SLA.
- Learn it in “Observability & SLOs” →
- Split brain
- When two nodes both believe they are the leader and accept conflicting writes, usually after a network split or a botched failover.
- Learn it in “Replication” →
- Stateless server
- A server that keeps nothing a user needs between requests, so any server can handle any request. State lives in a shared store or with the client.
- Think of it as: Any supermarket checkout can serve any shopper.
- Learn it in “Horizontal scaling & autoscaling” →
- Sticky session
- Sending all of a user's requests to the same server, usually because that server holds their session state.
- Learn it in “Load balancing” →
- Tail latency
- The latency of the slowest requests (p99, p99.9). Small in number, but they're what users notice.
- Learn it in “Latency, throughput & percentiles” →
- Throughput
- How much work a system completes per unit of time, such as requests per second.
- Think of it as: How many coffees the counter serves per hour.
- Learn it in “Latency, throughput & percentiles” →
- Timeout
- The longest a caller will wait for a response before giving up and treating the call as failed. Without one, a hung dependency can hold the caller's resources indefinitely.
- Learn it in “Timeouts, circuit breakers & rate limiting” →
- Trace
- The record of one request's journey through a system, made of spans (timed pieces of work) linked by a shared trace ID.
- Think of it as: A parcel's tracking history, with every stop and its time.
- Learn it in “Observability & SLOs” →
- Transactional outbox
- Saving an outgoing event in an 'outbox' table in the same database transaction as the business change; a separate relay publishes it afterwards.
- Learn it in “Transactions across services” →
- TTL (time to live)
- How long a cached copy may be used before it must be checked or fetched again, e.g. Cache-Control: max-age=3600.
- Learn it in “CDNs & the edge” →
- Two-phase commit (2PC)
- A protocol where a coordinator first asks every participant to prepare, then tells all of them to commit (or abort). If the coordinator fails after prepare, participants wait holding locks.
- Learn it in “Transactions across services” →
- Utilisation
- The share of time a resource (a server, CPU, disk, barista) is busy. Waiting time rises steeply as it nears 100%.
- Learn it in “Latency, throughput & percentiles” →
- Vendor lock-in
- How hard and costly it would be to move from one provider's services to another's.
- Learn it in “Building blocks on AWS, Google Cloud, Azure & open source” →
- Virtual waiting room
- A lightweight holding page that queues visitors during a surge and lets them into the real site at a rate it can handle.
- Think of it as: A queue outside a shop that lets people in as others leave.
- Learn it in “Design a flash-sale booking system” →
- WebSocket
- A protocol that keeps one connection open between a client and a server so either side can send messages at any time, without new requests.
- Think of it as: An open phone line, instead of sending a letter every time.
- Learn it in “Design real-time chat” →
A
B
C
D
E
F
H
I
J
L
M
N
O
P
Q
R
S
T
U
V
W
General terms · shared by every track
- ACID
- Four guarantees for transactions: Atomic (all or nothing), Consistent (rules hold), Isolated (concurrent work doesn't interfere), Durable (once done, it stays done).
- Learn it in “ACID on object storage” →
- Atomic
- All or nothing. An atomic change either happens completely or not at all, and nobody ever sees it half done.
- Think of it as: Handing over a sealed envelope: the other person has it or doesn't. There's no half-handed envelope.
- Learn it in “Object storage: the ground floor” →
- Batch processing
- Processing data in scheduled chunks, such as every night or every hour.
- Learn it in “Getting data in” →
- CSV
- Comma-separated values: plain text, one row per line. Easy to read, slow and large for analytics, and no schema.
- Learn it in “Rows vs columns: file formats” →
- Idempotent
- Safe to run twice: running the job again gives the same result instead of duplicating data.
- Learn it in “Medallion architecture” →
- JSON
- A text format of nested key-value objects, like {"id": 7}. Common for app events and APIs, and used by Delta's transaction log.
- Learn it in “Rows vs columns: file formats” →
- Metadata
- Data about data: which files exist, their schema, sizes and statistics. Engines read metadata first to plan work.
- Learn it in “What makes a table a table” →
- Schema
- The structure of a table: its column names and types, such as order_id: long, amount: decimal.
- Learn it in “Schema evolution & enforcement” →
- SQL
- The standard language for querying tables: SELECT … FROM … WHERE …
- Learn it in “Hands-on: query in your browser” →
- Streaming
- Processing data continuously as it arrives, within seconds or minutes.
- Learn it in “Getting data in” →
- Transaction
- A group of changes that succeeds or fails as one unit.
- Think of it as: A money transfer: debit one account and credit the other, or do neither.
- Learn it in “ACID on object storage” →
A
B
C
I
J
M
S
T