System design glossary
68 system design terms in plain language, each linked to a lesson where you can see it work.
- API gateway: One front door for every request. It can check who's calling, limit how many requests get through, and send each one to the right service.
- Authorise and capture: Taking a card payment in two steps: a hold at checkout that reserves the money, then the charge itself, usually when the order ships. An…
- Autoscaling: Adding machines when traffic rises and removing them when it falls, automatically. You pay for what ran, but new machines take time to…
- Back of the envelope estimation: Quick, rounded sums that give the size of a problem, such as requests a second or storage a year, before you design anything.
- Backlog: Jobs waiting in a queue. It may grow at the peak, but if it never empties, workers are too slow and need help.
- Backpressure: A full service or queue telling its senders to slow down, instead of accepting work without limit until it falls over.
- Bottleneck: The component that fills up first and limits the whole system. Fix it and the bottleneck moves somewhere else.
- Busy % (utilisation): How much of a component's capacity is used. Above ~70% requests start waiting in line; at 100% it rejects requests.
- Cache: A fast in-memory copy of popular data (e.g. Redis). Cache-aside: check the cache first; on a miss, read the database and save the result…
- Cache stampede: When a popular cached answer expires and every request for it misses at once, so they all ask the database to rebuild the same thing. Also…
- Canary release: Sending a new version to a small part of the system first, and only continuing if it stays healthy.
- CAP theorem: When machines can't reach each other, a system must choose: refuse some requests and stay correct, or answer with data that may be old.
- Cascading failure: One part fails, the load or the errors move to the next part, and that fails too, until the whole system is down.
- CDN (content delivery network): Servers around the world that keep copies of static files close to users, so those requests never reach your data centre.
- Circuit breaker: Watches calls to another service and, when too many fail, stops making them for a while. Callers answer at once without it, so one failure…
- Cold start: The extra wait when a serverless function has to start up before it can answer.
- Consistent hashing: A way to spread keys across machines so that adding or removing one only moves about 1 in N keys.
- Cursor pagination: Fetching the next page by asking for items after the last one you saw, instead of skipping rows. It stays fast however deep you go.
- Database index: A lookup structure that finds rows without reading the whole table. Reads get faster, and writes get a little slower.
- Dead letter queue: A side queue for jobs that keep failing. They're parked there for a person to inspect, so they don't block the main queue or retry for ever.
- Encoding: Turning one video file into smaller versions, so it plays well on any screen and any internet speed.
- Event stream: An ordered log of everything that happened. Unlike a queue, it keeps events after they're read, so many readers can each follow all of them.
- Eventual consistency: Copies of data catch up soon, but a read right now may return something slightly old.
- Exponential backoff: Waiting longer after each failed try: 1 second, then 2, then 4. It gives a struggling system room to recover instead of more load.
- Feature flag: A switch read while the app runs, which turns a feature on or off for some users without releasing new code.
- Functional requirements: What a system must do, such as letting people create a short link. Non functional requirements say how well: how fast, how big and how…
- Geo index: A store that splits the map into cells, so finding what's nearest only means looking at the cells around you.
- Hit rate: The share of requests the cache can answer itself. A 90% hit rate means only 1 in 10 reads reaches the database.
- Horizontal scaling (scale out): Handling more traffic by adding more machines, instead of buying one bigger machine.
- Hot key: One key that gets far more traffic than the rest. Its partition hits its limit even when the table as a whole has plenty of room.
- Idempotency key: A unique ID sent with a request, so that repeating it has no extra effect. It's how a retry avoids charging a card twice.
- Jitter: A small random amount added to a wait or an expiry time, so that many clients or keys don't all act in the same instant.
- Latency / response time: How long a user waits from sending a request to getting the answer.
- Leader election: How a group of machines agrees which one is in charge, and picks a new one when it fails. Raft and Paxos are algorithms for it.
- Load balancer: Sits in front of several servers and spreads requests across them. Also stops sending traffic to servers that are down.
- Load shedding: Refusing some requests on purpose when a system is full, so the ones it does take are answered quickly.
- NoSQL database: A database that gives up joins and flexible queries to spread data across many machines by itself. You look things up by key.
- Object storage: A managed store for whole files such as images and video. You fetch a file by name, it keeps many copies for you, and it's far cheaper per…
- Outbox pattern: Saving a change and its message in one transaction, then sending the message afterwards, so neither can go missing without the other.
- p99 (99th percentile): 99 out of 100 requests are faster than this. Averages hide slow requests; p99 shows what your unluckiest users feel.
- Partition: One slice of a stream or table. Data is split across partitions by a key, and each partition has its own limit.
- Primary database: The one database copy that accepts writes. It is the source of truth.
- Queue: Holds jobs so slow work (emails, image processing) happens in the background. The user gets an answer straight away.
- Quorum: A majority of a group of machines. Requiring one before acting means two halves of a split group can never both act.
- RAG (retrieval augmented generation): Search your own documents first, then give what you found to an AI model, so it answers from them instead of guessing.
- Rate limit: A cap on requests per second. Going over it gets a quick error instead of slowing everyone down, which keeps a spike from taking the whole…
- Read replica: A read-only copy of the database that takes read traffic off the primary. Its data can lag slightly behind.
- Read your writes: A promise that you always see your own changes, often kept by sending your reads to the primary just after you write.
- Region: A separate group of data centres in one part of the world, like US East or Mumbai. Running in several puts you closer to users and lets…
- Requests per second (req/s): How many requests arrive each second. 1 million requests a day is only about 12 per second on average.
- Retry storm: When failed requests are retried so eagerly that the retries themselves keep the system overloaded.
- Round trip: Going to a server and back. Inside a data centre that's ~0.5 ms; across continents it's 100–150 ms.
- Saga: A chain of local steps across services. If one fails, earlier steps are undone by compensating actions, such as a refund.
- Search index: A list of every word and the items that contain it, like the index at the back of a book. It answers text searches without reading…
- Single point of failure (SPOF): A component that takes the whole system down when it fails. Fix it by running at least two.
- Split brain: Two machines both believing they are the primary, usually after the network between them fails. Their data then disagrees.
- Standby / failover: A spare copy of the database kept in sync. If the primary dies, the standby takes over. It adds safety, not speed.
- Stateless server: A server that keeps no user data in its own memory or disk, so any server can handle any request and you can add or remove servers freely.
- Static files: Files that are the same for everyone: images, CSS, JavaScript. Perfect for a CDN.
- Strong consistency: Every read sees the latest write, usually at the cost of slower requests.
- Synchronous replication: The primary waits for a copy before confirming a write. Copies are never behind, but writes are slower. Asynchronous replication copies…
- Token bucket: A rate limit where each user has a bucket that slowly refills. Each request takes a token, so short bursts pass and steady floods don't.
- Two phase commit: A way to make several services commit together: all vote, then all commit. It's correct, but everyone waits for everyone.
- Vertical scaling (scale up): Handling more traffic with a bigger machine. Simple, but there's a ceiling and it's still one machine.
- Virtual nodes: Placing each machine at many points in consistent hashing, so every machine gets a fair share of keys.
- Waiting room: A page that holds a sudden crowd in a line and lets people in at a safe rate, so nobody gets an error.
- Webhook: A call another company's server makes to yours when something happens, like Stripe telling you a payment went through. It can arrive late,…
- Worker: A background process that takes jobs off a queue and does them.