Skip to main content

Appendix B — Glossary

One precise, interview-ready sentence per term, linked to the chapter that develops it. If a definition feels thin here, that's deliberate — the home chapter is where it earns its depth.

TermOne-sentence meaningHome
ACIDThe four transaction guarantees — Atomicity, Consistency, Isolation, Durability — that make a multi-step write behave like one indivisible, surviving operation.Ch 17
AEADAuthenticated Encryption with Associated Data — encryption that also detects tampering; nonce reuse is catastrophic.Ch 31
At-least-once deliveryThe message arrives one or more times, so consumers must be idempotent.Ch 25
BackpressureA slow consumer signalling a fast producer to slow down, so memory stays bounded instead of exploding.Ch 8
BFF (Backend-for-Frontend)A thin per-client API layer that shapes responses for one frontend, sitting in front of shared services.Ch 39
Blast radiusHow much of the system one failure, breach, or bad deploy can damage.Ch 1
BM25The relevance-ranking function search engines use — term frequency with diminishing returns and document-length normalization.Ch 22
Blue-green deployRun two identical environments; cut traffic from old to new atomically, roll back by flipping the switch.Ch 38
Bounded contextA boundary within which a domain model and its terms have one consistent meaning.Ch 39
BulkheadIsolating resources (pools, threads) so one overloaded dependency can't sink the whole service.Ch 33
B-treeThe balanced, high-fan-out tree behind most database indexes; O(log n) lookups with a tiny constant.Ch 18
Cache-asideRead from cache; on a miss, load from the source, populate the cache, return — the default caching pattern.Ch 21
Cache stampedeA hot key expiring so every request misses at once and hammers the origin — a self-inflicted DDoS.Ch 21
CAP theoremUnder a network partition you must choose Consistency or Availability; "CA" means single-node.Ch 23
Cardinality (metrics)The number of distinct label-value combinations on a metric; high cardinality multiplies time-series and can OOM your metrics backend.Ch 34
Characterization testA test that pins down what legacy code currently does (right or wrong) so you can change it safely.Ch 40
Circuit breakerA wrapper that stops calling a failing dependency after N failures, giving it time to recover.Ch 33
Consistent hashingMapping keys to nodes on a ring so adding/removing a node moves ~1/N of keys, not all of them.Ch 24
Consensus (Raft)A protocol by which a cluster agrees on one ordered log despite failures, via leader election + majority commit.Ch 24
Correlation IDAn identifier attached to a request and propagated across services so you can stitch one trace from many logs.Ch 34
CQRSSeparating the write model from the read model; powerful but usually overkill — adopt with skepticism.Ch 27
Deadline propagationPassing a shrinking time budget down each service hop so a request fails fast instead of hanging everywhere.Ch 33
Dead-letter queue (DLQ)Where messages that keep failing are parked for inspection instead of blocking the queue forever.Ch 26
Distributed monolithMicroservices so coupled they must deploy together — all the cost of distribution, none of the benefit.Ch 39
DNSThe lookup that turns a hostname into an IP address; itself a (usually cached) network round trip.Ch 5
Effectively-once processingThe honest version of "exactly once": at-least-once delivery + idempotent handlers = each effect applied once.Ch 25
EmbeddingA vector that places text in a semantic space so "near" means "similar in meaning."Ch 42
Error budgetThe amount of unreliability an SLO permits; spend it on velocity, exhaust it and you stop shipping risk.Ch 33
Event loopNode's single-threaded scheduler that interleaves non-blocking I/O — a consequence of readiness-based I/O.Ch 7
Event sourcingStoring state as an append-only log of events and deriving current state by replay; niche, adopt with skepticism.Ch 27
Expand/contract migrationSchema change in safe phases (add → backfill → switch → remove) so deploys never break running code.Ch 38
Fan-out amplificationOne request making N downstream calls, so a rare slow call becomes near-certain per request (tail latency).Ch 30
Fencing tokenA monotonically increasing number that lets a resource reject a stale lock-holder's writes.Ch 21
Graceful shutdownOn SIGTERM, stop accepting work, drain in-flight requests, then exit — so deploys don't drop traffic.Ch 8
HMACA keyed hash that proves a message came from someone holding the shared secret and wasn't altered.Ch 31
Head-of-line blockingOne stuck item delaying everything queued behind it (per TCP connection in HTTP/1.1 and HTTP/2).Ch 6
IdempotencyAn operation that, applied twice, has the same effect as applied once — the antidote to retries.Ch 25
IDOR / BOLABroken object-level authorization — accessing another user's record by changing an ID, distinct from role checks.Ch 32
Isolation levelThe dial controlling which concurrency anomalies a transaction may observe (Read Committed → Serializable).Ch 17
JWTA signed, self-describing token carrying claims; powerful and easy to misuse (alg confusion, no revocation).Ch 32
KDFA deliberately slow password-hashing function (argon2, bcrypt, scrypt) that resists brute force.Ch 31
Keyset (cursor) paginationPaging by "rows after this key" instead of OFFSET, so deep pages stay fast and stable under writes.Ch 11
Little's LawL = λ × W — concurrency equals arrival rate times time-in-system; the basis of pool sizing.Ch 30
LSM-treeA write-optimized storage structure (memtable + sorted files + compaction) trading read/space for write throughput.Ch 18
Lost updateTwo read-modify-write cycles clobbering each other on the same row — the classic concurrency bug.Ch 17
MVCCMulti-version concurrency control — keeping old row versions so readers never block writers.Ch 17
mTLSMutual TLS — both client and server present certificates, the backbone of service-to-service auth.Ch 6
N+1 queryIssuing one query per item of a list instead of one batched query — a top cause of slow endpoints.Ch 30
NormalizationStructuring relational data to remove redundancy and the update anomalies it causes (1NF→BCNF).Ch 15
OAuth2 / OIDCDelegated authorization (OAuth2) and the identity layer on top (OIDC); Authorization Code + PKCE is the safe default.Ch 32
OLTP vs OLAPTransactional (many small reads/writes) vs analytical (few huge scans) workloads — don't run one on the other's store.Ch 18
Outbox patternWriting an event to a DB table in the same transaction as the state change, then relaying it — kills dual-write bugs.Ch 26
PACELCThe honest extension of CAP: under Partition choose C/A; Else (normal operation) choose Latency/Consistency.Ch 23
Percentile (p99)The value below which 99% of measurements fall; tail percentiles, not averages, are what users feel.Ch 30
QuorumRequiring R + W > N (reads + writes exceed replica count) so reads and writes always overlap.Ch 24
RAGRetrieval-Augmented Generation — fetch relevant context and feed it to an LLM instead of relying on its memory.Ch 42
RBAC / ABAC / ReBACAuthorization by role / by attribute / by relationship — increasingly expressive permission models.Ch 32
RED / USEMetrics methods: RED (Rate, Errors, Duration) for services; USE (Utilization, Saturation, Errors) for resources.Ch 34
Row-level security (RLS)Database-enforced per-row access rules — the second wall of multi-tenant isolation.Ch 32
RTO / RPORecovery Time Objective (how long to recover) and Recovery Point Objective (how much data you can lose).Ch 33
SagaA long-running distributed workflow as a series of local transactions with compensating undo steps.Ch 27
Shard keyThe field that decides which partition a row lives on; a near-irreversible choice that can hotspot a cluster.Ch 20
SLI / SLOService Level Indicator (a measured signal) and Objective (the target for it) that drive alerting and budgets.Ch 33
SSRFServer-Side Request Forgery — tricking your server into making requests to internal targets it shouldn't.Ch 31
StatelessnessKeeping no per-user state in the process between requests, so any instance can serve any request.Ch 29
Strangler figMigrating a legacy system by routing slices to new code until the old system can be removed.Ch 40
TCP handshakeThe three-way SYN/SYN-ACK/ACK exchange that sets up a reliable byte stream before any HTTP flows.Ch 5
TestcontainersA library that spins up real databases in containers for integration tests, killing "works against a mock" lies.Ch 35
TombstoneA delete-marker record (in LSM stores and Kafka compaction) that signals a key's removal.Ch 27
Trust boundaryThe membrane where untrusted client input becomes validated, authorized, persisted truth.Ch 1
Twelve-Factor AppA set of constraints (config in env, stateless processes, disposability…) that make an app cloud-deployable.Ch 36
Vector databaseA store with approximate-nearest-neighbor search over embeddings, for semantic and hybrid retrieval.Ch 42
VPCA virtual private network in the cloud; public subnets route to the internet, private ones don't.Ch 37
WALWrite-Ahead Log — record the change durably before applying it, so a crash can replay to a consistent state.Ch 18
WebSocketA persistent, bidirectional connection upgraded from HTTP, for realtime push to clients.Ch 28
Write skewTwo transactions each reading a shared invariant and writing different rows that together break it — survives snapshot isolation.Ch 17

← Back to Master TOC