Glossary

157 terms used across the walkthroughs and building blocks. Anywhere a term appears in prose it is underlined: hover for this definition, click to read the page that explains it.

3

301 · 301 redirect, permanent redirect
A permanent redirect that browsers cache, so repeat visits never reach your server. Cheap, but you lose analytics and cannot change it later for that browser. Building block →
302 · 302 redirect, 307, temporary redirect
A temporary redirect that is not cached, so every click hits your server. You can count clicks and change the target. Building block →

A

anycast
Announcing the same IP address from many locations so the network routes each user to the nearest one. How CDNs and DNS resolvers get users to a close site. Building block →
API gateway
The single entry point in front of many services. It terminates TLS, authenticates, rate limits and routes, so the services do not each have to. Building block →
at-least-once · at least once
A delivery guarantee where every message arrives, but some may arrive more than once after retries. The consumer must tolerate duplicates. Building block →
at-most-once · at most once
A delivery guarantee with no duplicates but possible loss: the message is sent once and never retried. Building block →
availability zone · AZ, multi-AZ
An isolated data centre within a cloud region. Running in two or more means one building losing power does not take you down. Building block →

B

B-tree · B+tree, B+ tree, btree
A balanced tree with wide nodes that keeps keys sorted on disk. Every lookup is three or four page reads, which is why it backs most database indexes. Data structure →
backpressure
A consumer signalling a producer to slow down (by blocking, bounded buffers or flow control) so queues and memory do not grow without limit. Building block →
bitmap index · bitmap, roaring bitmap
One bit per row per value, so filtering on low-cardinality columns becomes fast AND/OR over bit arrays. Data structure →
Bloom filter
A bit array plus a few hashes that answers "have I seen this key?" with no false negatives and a small, tunable false-positive rate, in a fraction of the memory of a set. Data structure →
blue-green · blue/green
Two full environments; traffic switches from the old (blue) to the new (green) at once, and back just as fast if something breaks. Building block →
buffer pool
The memory a database uses to cache data pages. If the working set fits in it, reads never touch disk. Data structure →
bulkhead
Isolating resources (threads, connections, queues) per dependency or tenant so one slow thing cannot consume everything. Building block →

C

cache hit · hit ratio, hit rate
A read served from the cache without touching the database. Hit ratio is hits divided by all reads; above 90% is typical once a cache is warm. Building block →
cache miss
A read the cache cannot serve, so the request falls through to the database and the result is usually written back. Building block →
cache stampede · dog-piling, dog-pile
A popular key expires and hundreds of requests miss at the same instant, all hitting the database for the same value. Building block →
cache-aside · lazy loading
The application checks the cache first, and on a miss reads the database and writes the result into the cache. The cache itself never talks to the database. Building block →
Cache-Control · max-age
The HTTP header telling browsers and CDNs how long they may cache a response (max-age) and whether it is shared or private. Building block →
canary · canary release, canary deploy
Sending a small percentage of traffic to the new version and watching error rates before widening the rollout. Building block →
CAP · CAP theorem
During a network partition a system must choose between staying consistent (refusing some requests) or staying available (accepting them and diverging). Building block →
CDN · content delivery network, edge, point of presence, PoP, PoPs
A network of caching servers near users (points of presence). Static files and video segments are served from the nearest one; only misses reach your origin. Building block →
change data capture · CDC
Reading a database’s own change log and turning each row change into an event, so other systems follow the database without the application publishing anything. Building block →
circuit breaker
A wrapper around calls to a dependency that counts failures and, past a threshold, fails fast without calling it, probing occasionally to see if it has recovered. Building block →
clock skew
The difference between two machines’ clocks. Even with NTP it can be tens of milliseconds, enough to misorder events if you trust timestamps. Building block →
compaction
Background merging of sorted files in an LSM tree into fewer, larger files, dropping overwritten and deleted entries. It keeps reads fast at the cost of rewriting data several times. Data structure →
compare-and-set · CAS, compare and swap, conditional write
Update only if the current value is what you expect, in one atomic step. The basis of optimistic concurrency. Building block →
composite index
An index on several columns in a fixed order. It helps queries that filter on the leading column(s), not ones that filter only on a later column. Building block →
connection pool
A set of open database connections an application reuses instead of opening one per request. Opening a connection costs milliseconds and server memory. Building block →
consensus · Raft, Paxos
A protocol (Raft, Paxos) by which a cluster agrees on one value or one leader even if some nodes crash. etcd and ZooKeeper are consensus services. Building block →
consistent hashing · hash ring
Placing nodes and keys on a ring by hash so that adding or removing a node moves only about 1/N of the keys instead of nearly all of them. Data structure →
consumer group
A set of consumers sharing a topic’s partitions between them so the work is parallel but each partition is read in order by exactly one consumer. Building block →
correlation id · request id, X-Request-ID
An id generated at the edge and passed through every call and queue message so all logs for one request can be found together. Building block →
Count-Min sketch · Count-Min, CMS sketch
A small grid of counters indexed by several hashes that estimates how often each item appeared, never under-counting. Data structure →
covering index
An index that contains every column a query needs, so the database answers from the index alone without reading the table. Building block →
CRDT · conflict-free replicated data type
A data type (counter, set, text) designed so replicas can be updated independently and merged without conflicts. Data structure →
cursor · cursor pagination, keyset pagination
An opaque token (usually the last key seen) a client sends back to get the next page. Unlike OFFSET it stays fast on deep pages and stable under inserts. Building block →

D

DAG · directed acyclic graph
A graph of steps with dependencies and no cycles. Pipelines and workflow engines are DAGs: a step runs once everything it depends on has finished. Data structure →
data page · disk page, page read
The fixed-size block (typically 8 KB) a database reads and writes at once. Cost is counted in pages touched, not rows. Data structure →
DAU · daily active users
Daily active users. Estimates start here: DAU times actions per user per day gives daily requests. Building block →
dead-letter queue · DLQ, dead letter queue
A queue where messages go after failing too many times, so one bad message stops blocking the rest and someone can inspect and replay it. Building block →
denormalise · denormalised, denormalisation, denormalize, denormalized
Store a copy of data where it is read (for example the author name on each post) so a hot query avoids a join, at the cost of updating several places on write. Building block →
DNS TTL
How long resolvers cache a DNS answer. A long TTL delays failover because clients keep using the old address. Building block →

E

end-to-end encryption · E2EE
Encrypting on the sender’s device with keys the server never has, so the server stores and routes ciphertext it cannot read. Building block →
error budget · burn rate
The failures an SLO allows (0.1% of requests). Burn rate is how fast you are using it up; alerting on burn rate catches real incidents without paging on blips. Building block →
ETag · If-None-Match, 304
A fingerprint of a response. The client sends it back on the next request and gets a tiny 304 Not Modified if nothing changed. Building block →
eventual consistency · eventually consistent
Replicas may briefly disagree after a write but converge on the same value once updates stop. You trade a short staleness window for availability and speed. Building block →
eviction
Removing entries from a full cache to make room. The policy (usually LRU) decides which entry goes. Data structure →
exactly-once · exactly once
Each message takes effect precisely once. In practice this is at-least-once delivery plus idempotent processing or transactional offsets; true exactly-once delivery across systems does not exist. Building block →
exponential backoff · backoff
Waiting longer between each retry (1 s, 2 s, 4 s) so a struggling service is not hammered by retries. Building block →

F

failover
Promoting a replica to primary when the primary dies, and pointing clients at it. Automatic failover needs health checks and a way to stop the old primary from accepting writes. Building block →
fan-out · fan out, fanout
One event producing many writes or calls, such as one post being copied into every follower’s timeline (fan-out on write) or one request calling many services. Building block →
feature flag · feature flags, kill switch
A runtime switch that turns behaviour on or off for a percentage or cohort of users without a deploy. Building block →
fencing token
A number that increases with each lease grant. Storage rejects writes carrying an older token, so a holder that paused and lost its lease cannot corrupt data. Building block →
fsync
The system call that forces buffered writes onto the disk itself rather than the OS cache. A write is only durable after fsync returns, which is why it dominates commit latency. Data structure →

G

game day · chaos engineering, chaos test
A planned exercise where you break something on purpose (kill a node, fail a region) to see whether failover and runbooks work. Building block →
geohash · H3, S2, S2 cell, H3 cell
Encoding a latitude and longitude into a short string or cell id where nearby places share a prefix, so "nearby" becomes a prefix or cell lookup. Data structure →
GOP · keyframe, group of pictures
A keyframe plus the frames that depend on it. Segments must start at a keyframe so each can be decoded on its own. Building block →
gRPC · Protobuf, protocol buffers
A binary RPC protocol over HTTP/2 using Protobuf-typed messages. Faster and stricter than JSON over REST; used between services, rarely with browsers. Building block →

H

hash table · hash map, hashmap
An array indexed by a hash of the key, giving O(1) average lookup and insert. Underneath Redis, caches and every in-memory index. Data structure →
health check · liveness, readiness, readiness probe, liveness probe
An endpoint a load balancer or orchestrator calls to decide whether an instance should receive traffic (readiness) or be restarted (liveness). Building block →
heap · priority queue, min-heap, max-heap
A tree-shaped array where the smallest (or largest) item is always at the top, giving O(log n) insert and O(1) peek. Backs priority queues and top-k. Data structure →
heartbeat
A tiny periodic message proving a connection or node is still alive. Miss a few and the other side assumes it is gone. Building block →
HLS · DASH, MPEG-DASH, adaptive bitrate, ABR
Video streaming formats that cut a video into short segments at several quality levels and let the player pick a level per segment based on measured bandwidth. Building block →
HMAC · signed request, request signing
A hash computed with a shared secret. Attached to a request or webhook so the receiver can verify who sent it and that it was not altered. Building block →
hot key
A single cache key or row that receives a disproportionate share of traffic, such as a celebrity profile, and overloads the one node that owns it. Building block →
hot partition · hot shard
One partition receiving most of the traffic because the key is skewed (a celebrity, a popular tenant, a time-ordered key). Building block →
HyperLogLog · HLL
A sketch that estimates the number of distinct items in about 12 KB with roughly 1% error, no matter how many items there are. Data structure →

I

idempotent · idempotency, idempotency key
An operation that has the same effect whether it runs once or several times. Retries and redeliveries are only safe against idempotent handlers; an idempotency key is how a server recognises a repeat. Building block →
index · database index, secondary index, indexes, indices
A sorted structure (usually a B-tree) on one or more columns that lets the database jump to matching rows instead of scanning the whole table. Building block →
inverted index
A map from each word to the list of documents containing it, which is how full-text search answers "documents with these words" without scanning text. Data structure →

J

jitter
A random amount added to a delay or TTL so that many clients do not all retry or expire at the same instant. Building block →
JWT · JSON Web Token
A signed token carrying claims (user id, expiry) that a server can verify without a database lookup. Cannot be revoked before it expires, so keep them short-lived. Building block →

K

key generation service · KGS
A service that pre-generates random unique keys into a table so app servers can take a batch and hand them out without collision checks. Building block →
KMS · envelope encryption, key management service
A managed service that holds master keys. Data is encrypted with a per-record key, and that key is encrypted with the master key (envelope encryption). Building block →

L

leader election
Nodes agreeing on which one of them is in charge, usually via a consensus service or a lease in a database. Building block →
lease
A lock with an expiry. The holder must renew it; if it dies, the lease lapses and someone else can take over. Building block →
linearizable · linearizability
The strictest consistency: operations appear to happen instantly in one global order, so a read after a write anywhere sees that write. Building block →
load balancer
A component that spreads incoming requests across many servers and stops sending to ones that fail health checks. Building block →
load shedding
Rejecting some requests early (429 or 503) when overloaded so the rest complete quickly instead of everything timing out. Building block →
log sequence number · LSN
The byte position in the write-ahead log. A replica that has applied up to LSN 1,042 has every change before that point, so LSNs are how you measure replication lag and route read-after-write. Building block →
long polling
The client makes a request the server holds open until it has something to send, then the client immediately asks again. A push fallback over plain HTTP. Building block →
LRU · least recently used
Evict the entry that has gone longest without being read. Implemented in O(1) with a hash map plus a doubly linked list. Data structure →
LSM tree · log-structured merge tree, LSM
A storage engine that buffers writes in memory and flushes them as sorted files, merging them in the background. Fast sequential writes, slightly slower reads. Data structure →

M

manifest · playlist, master manifest
A small text file listing a video’s renditions and the segments of each, which the player reads first. Building block →
materialised view · materialized view
A query result stored as a table and refreshed on a schedule or on write, so expensive aggregates are precomputed. Building block →
memtable
The in-memory sorted buffer an LSM tree writes into first. When it fills, it is flushed to disk as an SSTable. Data structure →
Merkle tree · hash tree
A tree of hashes where each parent is the hash of its children. Two replicas compare root hashes and walk down only where they differ to find out-of-sync ranges. Data structure →
multipart upload
Uploading a large file as independent parts that can be sent in parallel and retried individually, then combined by the storage service. Building block →

N

N+1 query · N+1 queries, N+1 problem
Fetching a list with one query and then one more query per item. Fifty items become fifty-one round trips; the fix is one batched query. Building block →

O

OAuth · OIDC, OpenID Connect, OAuth 2
Standards for delegating login and permissions to an identity provider, so your service receives a token instead of a password. Building block →
object storage · blob storage, blob store
A service that stores files by key with no directories or transactions (S3, GCS). Cheap, durable, and the right home for anything large and immutable. Building block →
offset · consumer offset, offsets
A consumer’s position in a log partition, stored so it can resume after a restart or rewind to reprocess. Building block →
optimistic locking · optimistic concurrency
Read a version, do the work, write back only if the version is unchanged. No locks held; conflicts are detected and retried. Building block →
origin · origin server
Your own servers or storage, as seen from a CDN. A CDN miss is a request that had to travel to the origin. Building block →
outbox · transactional outbox, outbox pattern
A table the application writes events into in the same transaction as the data change. A separate relay publishes them, so the write and the event can never disagree. Building block →

P

p99 · p95, p50, percentile latency, 99th percentile
The latency that 99% of requests beat. p99 of 300 ms means one request in a hundred is slower than that. Averages hide the tail; percentiles show it. Building block →
partition · partitions, partition key
A slice of a table, topic or keyspace. In Kafka, the unit of ordering and parallelism; in Cassandra and DynamoDB, the rows sharing one partition key stored together. Building block →
pessimistic locking · SELECT FOR UPDATE, row lock
Lock the row before changing it so nobody else can, then release on commit. Simple under contention; dangerous if held across network calls. Building block →
point-in-time recovery · PITR
Restoring a database to any moment by replaying the write-ahead log on top of a base backup. It is how you undo a bad migration that replication faithfully copied everywhere. Building block →
pre-signed URL · presigned URL, signed URL
A URL carrying a signature and expiry that lets a client upload to or download from object storage directly, without the request passing through your servers. Building block →
primary · primary database, primary node, leader
The one copy of a database that accepts writes. Replicas copy from it. Called the leader in some systems. Building block →
pub/sub · publish/subscribe, pubsub
Producers publish to a topic and every subscriber gets its own copy of each message. The producer does not know who is listening. Building block →
push notification · APNs, FCM
A message delivered to a phone through Apple’s (APNs) or Google’s (FCM) push service, which reaches the device even when your app is closed. Building block →

Q

QPS · requests per second, RPS
Queries (or requests) per second. The basic unit for sizing: daily events divided by 86,400, then multiplied by a peak factor of 3 to 10. Building block →
quadtree
A tree that splits a map into four quadrants recursively, with denser areas getting smaller cells. Good for static points, poor for fast-moving ones. Data structure →
query plan · EXPLAIN, EXPLAIN ANALYZE, execution plan
The steps the database chose to run a query: which indexes, which join order, how many rows it expects. EXPLAIN shows it; EXPLAIN ANALYZE runs it and shows actual numbers. Building block →
quorum
The number of replicas that must acknowledge a read or write. If reads plus writes exceed the replica count, every read overlaps the latest write. Building block →

R

rate limit · rate limiting, rate limiter, 429, Retry-After
Capping how many requests a client may make per time window, returning 429 Too Many Requests with a Retry-After header when exceeded. Building block →
read amplification
How many places a single logical read touches: several LSM levels, a cache then the database, or N shards. Building block →
read-after-write · read-your-writes, read your own writes
The guarantee that a user who just wrote something sees it on their next read. With replicas this needs care, because the read may hit a copy that has not received the write yet. Building block →
replica · read replica, follower, standby
A copy of the database that receives changes from the primary, usually with a small delay. Used to serve reads and to take over if the primary fails. Building block →
replication lag
The delay between a write committing on the primary and the same change being visible on a replica. Usually tens of milliseconds, but seconds under load, which is long enough for a user to notice their own write missing. Building block →
reverse proxy
A server that sits in front of application servers and forwards requests to them, handling TLS, compression and buffering on the way. Building block →
ring buffer · circular buffer
A fixed-size array used as a queue whose write position wraps around, so it never allocates and old entries are overwritten. Data structure →

S

saga · compensating action, compensation
A multi-step operation across services where each step is a local transaction with a compensating action to undo it if a later step fails. Building block →
segment · video segment, segments
A few seconds of video as an independent file. Players download segments one at a time, which is what lets them switch quality and CDNs cache them. Building block →
selectivity
How much a filter narrows the rows. A column with many distinct values is selective; status with three values is not, and an index on it rarely helps. Building block →
sequential scan · full table scan, table scan
Reading every row of a table to answer a query, because no useful index exists. Fine for small tables, fatal for big ones. Building block →
server-sent events · SSE
A one-way stream of events from server to browser over a normal HTTP response that never closes. Simpler than WebSockets when the client never sends. Building block →
service discovery
How a service finds the current addresses of another service’s instances, via DNS or a registry such as Consul, instead of hard-coded hosts. Building block →
service mesh · mTLS
A sidecar proxy next to every service that handles service-to-service TLS (mTLS), retries, timeouts and metrics without code changes. Building block →
shard · shards, sharding, shard key
One slice of a dataset that lives on its own database node, chosen by a key such as user id. Sharding splits data so no single node holds or serves all of it. Building block →
single-flight · request coalescing, request collapsing
When several requests need the same uncached value at once, let one fetch it and have the others wait for that result. Building block →
skip list
A sorted linked list with extra express lanes so lookups take O(log n). Redis sorted sets use one. Data structure →
sliding window · sliding window counter
A rate-limiting or aggregation window that moves continuously rather than resetting at fixed boundaries, which avoids a double burst at the edge. Building block →
SLO · service level objective, SLI, service level indicator
A target for a user-facing metric (99.9% of requests succeed within 300 ms over 30 days). The SLI is the measurement; the SLO is the promise. Building block →
Snowflake id · Snowflake, ULID, UUIDv7
An id built from a timestamp, a node id and a sequence (64 bits for Snowflake; ULID and UUIDv7 use the same idea in 128 bits), so ids are unique across machines and sort by time. Building block →
sorted set · ZADD, ZRANGE, ZREVRANGE
A Redis structure holding members ordered by a score, backed by a skip list and a hash. ZADD inserts; ZRANGE reads a slice by rank or score. Data structure →
split-brain
Two nodes both believing they are the primary and both accepting writes, usually after a network partition. The writes conflict and one side has to be discarded. Building block →
SSTable · sorted string table
An immutable file of key-value pairs sorted by key, written when an LSM tree flushes its memtable. Lookups binary-search it; a Bloom filter says whether a key might be inside. Data structure →
stale read · stale data
Reading a value that has since changed elsewhere, because a cache or replica has not caught up yet. Building block →
stale-while-revalidate
Serve the expired cached value immediately and refresh it in the background, so no request waits on the refresh. Building block →
stateless · stateless service, stateless servers
A server that keeps nothing between requests, so any instance can handle any request and you can add or remove instances freely. Building block →
sticky session · sticky sessions, session affinity
Routing every request from one user to the same server, needed when the server keeps per-user state. It makes scaling and failover harder. Building block →
strong consistency · strongly consistent
Every read returns the most recent committed write, no matter which node serves it. Costs coordination on each write. Building block →

T

tail latency
The slow end of the latency distribution. A page that fans out to many services inherits the slowest one, which is why the tail matters more than the mean. Building block →
thundering herd
Many clients or jobs waking, retrying or expiring at the same moment and overwhelming a shared resource. Building block →
TLS · TLS termination, HTTPS
The encryption layer under HTTPS. Terminating TLS means decrypting at the load balancer or CDN so application servers handle plain HTTP. Building block →
token bucket
A rate-limiting algorithm where tokens drip into a bucket at a fixed rate and each request spends one; a full bucket allows a short burst. Building block →
tombstone
A marker that says "this row is deleted" instead of physically removing it. Readers skip it; a later cleanup removes it for real. Used so deletes replicate and cache safely. Building block →
trace · span, spans, distributed trace
A record of one request across services. Each hop records a span (name, start, duration, parent); the trace is the tree of spans shown as a waterfall. Building block →
transcode · transcoding, rendition, renditions
Re-encoding an uploaded video into several resolutions and bitrates (renditions) so it can play on any device and connection. Building block →
trie · prefix tree
A tree where each path from the root spells a prefix, so all words starting with "sys" are found by walking three nodes. Data structure →
TTL · time to live, time-to-live
How long a cache entry or row is allowed to live before it expires on its own. Short TTLs limit staleness; long ones raise the hit rate. Building block →
tumbling window · windowed aggregation, sliding window aggregation
A fixed time bucket (every minute) over a stream of events. Counts are emitted per window; tumbling windows do not overlap. Building block →
two-phase commit · 2PC
A protocol where a coordinator asks every participant to prepare, then tells all of them to commit. Atomic across stores, but it blocks while the coordinator is down. Building block →

V

vector clock
A per-node counter array attached to each write so two versions can be compared: one happened before the other, or they conflict. Data structure →
virtual node · virtual nodes, vnode, vnodes
Giving each physical node many positions on the hash ring so load spreads evenly and a failed node’s keys scatter across all the others. Data structure →

W

WAF · web application firewall
A filter in front of your app that blocks known-bad request patterns and absorbs floods at the edge. Building block →
watermark
In stream processing, a marker saying "no events older than this time will arrive now", which lets a window close and emit its result. Building block →
webhook · webhooks
An HTTP request a service sends to a URL you registered when something happens, instead of you polling for it. Building block →
WebSocket · WebSockets
A persistent two-way connection between browser and server over one TCP socket, so the server can push messages at any time. Building block →
write amplification
How many bytes actually hit disk for each byte you logically wrote, counting the log, every index, every replica and compaction rewrites. Building block →
write-ahead log · WAL, WAL stream, write-ahead logging
An append-only file the database writes every change to before touching its data pages. If the process crashes, replaying the log restores the data. The same stream is shipped to replicas to keep them in sync. Data structure →
write-behind · write-back
Writes land in the cache and are flushed to the database later in batches. Fastest writes, but a cache crash loses whatever was not flushed. Building block →
write-through
Writes update the cache and the database in the same request, so the cache is never stale at the cost of slower writes. Building block →