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.
| Term | One-sentence meaning | Home |
|---|---|---|
| ACID | The four transaction guarantees — Atomicity, Consistency, Isolation, Durability — that make a multi-step write behave like one indivisible, surviving operation. | Ch 17 |
| AEAD | Authenticated Encryption with Associated Data — encryption that also detects tampering; nonce reuse is catastrophic. | Ch 31 |
| At-least-once delivery | The message arrives one or more times, so consumers must be idempotent. | Ch 25 |
| Backpressure | A 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 radius | How much of the system one failure, breach, or bad deploy can damage. | Ch 1 |
| BM25 | The relevance-ranking function search engines use — term frequency with diminishing returns and document-length normalization. | Ch 22 |
| Blue-green deploy | Run two identical environments; cut traffic from old to new atomically, roll back by flipping the switch. | Ch 38 |
| Bounded context | A boundary within which a domain model and its terms have one consistent meaning. | Ch 39 |
| Bulkhead | Isolating resources (pools, threads) so one overloaded dependency can't sink the whole service. | Ch 33 |
| B-tree | The balanced, high-fan-out tree behind most database indexes; O(log n) lookups with a tiny constant. | Ch 18 |
| Cache-aside | Read from cache; on a miss, load from the source, populate the cache, return — the default caching pattern. | Ch 21 |
| Cache stampede | A hot key expiring so every request misses at once and hammers the origin — a self-inflicted DDoS. | Ch 21 |
| CAP theorem | Under 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 test | A test that pins down what legacy code currently does (right or wrong) so you can change it safely. | Ch 40 |
| Circuit breaker | A wrapper that stops calling a failing dependency after N failures, giving it time to recover. | Ch 33 |
| Consistent hashing | Mapping 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 ID | An identifier attached to a request and propagated across services so you can stitch one trace from many logs. | Ch 34 |
| CQRS | Separating the write model from the read model; powerful but usually overkill — adopt with skepticism. | Ch 27 |
| Deadline propagation | Passing 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 monolith | Microservices so coupled they must deploy together — all the cost of distribution, none of the benefit. | Ch 39 |
| DNS | The lookup that turns a hostname into an IP address; itself a (usually cached) network round trip. | Ch 5 |
| Effectively-once processing | The honest version of "exactly once": at-least-once delivery + idempotent handlers = each effect applied once. | Ch 25 |
| Embedding | A vector that places text in a semantic space so "near" means "similar in meaning." | Ch 42 |
| Error budget | The amount of unreliability an SLO permits; spend it on velocity, exhaust it and you stop shipping risk. | Ch 33 |
| Event loop | Node's single-threaded scheduler that interleaves non-blocking I/O — a consequence of readiness-based I/O. | Ch 7 |
| Event sourcing | Storing state as an append-only log of events and deriving current state by replay; niche, adopt with skepticism. | Ch 27 |
| Expand/contract migration | Schema change in safe phases (add → backfill → switch → remove) so deploys never break running code. | Ch 38 |
| Fan-out amplification | One request making N downstream calls, so a rare slow call becomes near-certain per request (tail latency). | Ch 30 |
| Fencing token | A monotonically increasing number that lets a resource reject a stale lock-holder's writes. | Ch 21 |
| Graceful shutdown | On SIGTERM, stop accepting work, drain in-flight requests, then exit — so deploys don't drop traffic. | Ch 8 |
| HMAC | A keyed hash that proves a message came from someone holding the shared secret and wasn't altered. | Ch 31 |
| Head-of-line blocking | One stuck item delaying everything queued behind it (per TCP connection in HTTP/1.1 and HTTP/2). | Ch 6 |
| Idempotency | An operation that, applied twice, has the same effect as applied once — the antidote to retries. | Ch 25 |
| IDOR / BOLA | Broken object-level authorization — accessing another user's record by changing an ID, distinct from role checks. | Ch 32 |
| Isolation level | The dial controlling which concurrency anomalies a transaction may observe (Read Committed → Serializable). | Ch 17 |
| JWT | A signed, self-describing token carrying claims; powerful and easy to misuse (alg confusion, no revocation). | Ch 32 |
| KDF | A deliberately slow password-hashing function (argon2, bcrypt, scrypt) that resists brute force. | Ch 31 |
| Keyset (cursor) pagination | Paging by "rows after this key" instead of OFFSET, so deep pages stay fast and stable under writes. | Ch 11 |
| Little's Law | L = λ × W — concurrency equals arrival rate times time-in-system; the basis of pool sizing. | Ch 30 |
| LSM-tree | A write-optimized storage structure (memtable + sorted files + compaction) trading read/space for write throughput. | Ch 18 |
| Lost update | Two read-modify-write cycles clobbering each other on the same row — the classic concurrency bug. | Ch 17 |
| MVCC | Multi-version concurrency control — keeping old row versions so readers never block writers. | Ch 17 |
| mTLS | Mutual TLS — both client and server present certificates, the backbone of service-to-service auth. | Ch 6 |
| N+1 query | Issuing one query per item of a list instead of one batched query — a top cause of slow endpoints. | Ch 30 |
| Normalization | Structuring relational data to remove redundancy and the update anomalies it causes (1NF→BCNF). | Ch 15 |
| OAuth2 / OIDC | Delegated authorization (OAuth2) and the identity layer on top (OIDC); Authorization Code + PKCE is the safe default. | Ch 32 |
| OLTP vs OLAP | Transactional (many small reads/writes) vs analytical (few huge scans) workloads — don't run one on the other's store. | Ch 18 |
| Outbox pattern | Writing an event to a DB table in the same transaction as the state change, then relaying it — kills dual-write bugs. | Ch 26 |
| PACELC | The 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 |
| Quorum | Requiring R + W > N (reads + writes exceed replica count) so reads and writes always overlap. | Ch 24 |
| RAG | Retrieval-Augmented Generation — fetch relevant context and feed it to an LLM instead of relying on its memory. | Ch 42 |
| RBAC / ABAC / ReBAC | Authorization by role / by attribute / by relationship — increasingly expressive permission models. | Ch 32 |
| RED / USE | Metrics 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 / RPO | Recovery Time Objective (how long to recover) and Recovery Point Objective (how much data you can lose). | Ch 33 |
| Saga | A long-running distributed workflow as a series of local transactions with compensating undo steps. | Ch 27 |
| Shard key | The field that decides which partition a row lives on; a near-irreversible choice that can hotspot a cluster. | Ch 20 |
| SLI / SLO | Service Level Indicator (a measured signal) and Objective (the target for it) that drive alerting and budgets. | Ch 33 |
| SSRF | Server-Side Request Forgery — tricking your server into making requests to internal targets it shouldn't. | Ch 31 |
| Statelessness | Keeping no per-user state in the process between requests, so any instance can serve any request. | Ch 29 |
| Strangler fig | Migrating a legacy system by routing slices to new code until the old system can be removed. | Ch 40 |
| TCP handshake | The three-way SYN/SYN-ACK/ACK exchange that sets up a reliable byte stream before any HTTP flows. | Ch 5 |
| Testcontainers | A library that spins up real databases in containers for integration tests, killing "works against a mock" lies. | Ch 35 |
| Tombstone | A delete-marker record (in LSM stores and Kafka compaction) that signals a key's removal. | Ch 27 |
| Trust boundary | The membrane where untrusted client input becomes validated, authorized, persisted truth. | Ch 1 |
| Twelve-Factor App | A set of constraints (config in env, stateless processes, disposability…) that make an app cloud-deployable. | Ch 36 |
| Vector database | A store with approximate-nearest-neighbor search over embeddings, for semantic and hybrid retrieval. | Ch 42 |
| VPC | A virtual private network in the cloud; public subnets route to the internet, private ones don't. | Ch 37 |
| WAL | Write-Ahead Log — record the change durably before applying it, so a crash can replay to a consistent state. | Ch 18 |
| WebSocket | A persistent, bidirectional connection upgraded from HTTP, for realtime push to clients. | Ch 28 |
| Write skew | Two transactions each reading a shared invariant and writing different rows that together break it — survives snapshot isolation. | Ch 17 |
← Back to Master TOC