Glossary: Systems Engineering
Every term Systems Engineering defines, from A to Z, with the section that teaches it. A section that uses a term from elsewhere, in this book or another, also lists it under “Concepts from other sections” at the top of the page.
397 terms
Symbols
Section titled “Symbols”::add-mask::: a workflow command that hides a literal string in logs; it does not catch transformed values. Taught in 10.6 CI for the platform repo.dockerignore: a.gitignore-style file that excludes paths from the build context. Taught in 10.1 Tracer deploy: images, a kind cluster, two Helm charts, and Jaeger[DONE]sentinel: the finaldata:event that marks the end of an OpenAI-style token stream. Taught in Chapter 4: Streaming and SSE
- Activity task: a lease on running one activity attempt. Taught in 7.4 The task protocol and workers
- Alert fatigue: the desensitization that follows too many low-value pages, until on-call engineers miss or ignore the alerts that matter. Taught in Chapter 11: Observability
- Ambassador pattern: a local proxy beside a service that handles routing and service discovery to remote services on its behalf. Taught in Chapter 9: Cloud Native Architecture
- Analyzer: the tokenizer-plus-filters pipeline that turns raw text into index terms; it must match at index and query time. Taught in Chapter 8: Search and Indexing
- Apache Way: the ASF’s public, merit-based, consensus-driven development model, backed by foundation ownership of trademark and IP. Taught in Appendix A: The Apache Ecosystem
- Approval gate:
needs_approvalon a consequential tool, which holds the action until a human allows it. Taught in 12.11 A runaway agent - artifacts chain: the three mounts (host directory, kind
extraMounts, PodhostPath) that carry the model into the engine. Taught in 10.1 Tracer deploy: images, a kind cluster, two Helm charts, and Jaeger - At-least-once: work is never dropped but may be processed more than once. Taught in Chapter 13: Case Study: Exactly-Once Event API
- At-least-once delivery: committing after the work, so a crash between work and commit causes a redelivered duplicate but never a loss. Taught in 5.3 Coordination and technology choice
- At-least-once delivery: a guarantee that every task is delivered, possibly more than once. Taught in 7.3 The task queue
- At-most-once: work is never processed twice but may be dropped. Taught in Chapter 13: Case Study: Exactly-Once Event API
- Atomic claim: a single statement that moves work from pending to claimed and reports what it moved. Taught in Chapter 13: Case Study: Exactly-Once Event API
- Backpressure: limiting what a producer sends or holds when a consumer reads slowly. Taught in Chapter 4: Streaming and SSE
- Backpressure: the signal that tells a fast producer the consumers are behind; free under pull, built from prefetch limits under push. Taught in 5.3 Coordination and technology choice
- Backward / forward compatibility: new code reading old data / old code reading new data. Taught in Chapter 3: RPC and Protocols
- Bake: the durable wait during which the canary serves traffic before it is measured. Taught in 7.12 ModelRelease: gates, canary, burn check, and rollback
- baseline: the load report of the last green run on main, on the same runner type. Taught in 10.6 CI for the platform repo
- Batch: the payload of one record, carrying every event of one
Appendso they are written atomically. Taught in 7.1 The append-only event log - batch span processor: an SDK component that queues ended spans and exports them in the background, so
span.End()never waits for the collector. Taught in 11.2 Tracing for the serving path - best-effort export: shipping telemetry through a bounded queue and background sender that drops rather than blocking requests. Taught in 11.1 One trace from gateway to engine
- Binary min-heap: an array-backed tree in which no entry is smaller than its parent, so the minimum is at index 0. Taught in 7.7 Durable timers
- Bitemporal data: records that carry both valid time and transaction time. Taught in Chapter 6: Distributed Data and Caching
- Bitwise resume: resuming from a checkpoint that holds weights, optimizer moments, RNG state, and data cursor, so the final loss equals the uninterrupted run’s exactly. Taught in 7.11 Platform workflows: TrainRun and EvalSuite
- Blameless postmortem: the fixed-shape record of one incident that names system properties, not people. Taught in 12.1 First drill: the engine crashloops
- Block hash: a hash over token ids chained with the parent hash, independent of the payload format. Taught in 12.5 The KV format v2 migration
- Blue-green deployment: running two complete environments and switching all traffic from the old (blue) to the new (green) at once, which makes rollback a switch back. Taught in Chapter 9: Cloud Native Architecture
- BM25: a ranking function that extends TF-IDF with term-frequency saturation () and document-length normalization (). Taught in Chapter 8: Search and Indexing
- Boundary map: the set of process and file boundaries where the system’s components meet, each with a contract. Taught in 1.3 Design review: the whole system
- Bounded admission: per-tenant request and token limits that reject excess load with a 429. Taught in 12.10 A noisy neighbor
- Bounded context: a domain-driven design boundary within which a model and its terms have one consistent meaning; it is the natural line for a service boundary. Taught in Chapter 2: Software Architecture
- Budget axes: iterations, tokens, wall-clock time, and tool concurrency, each bounded independently. Taught in 12.11 A runaway agent
- build context: the directory tree the Docker builder sends to the daemon before the first instruction; here, the repo root. Taught in 10.1 Tracer deploy: images, a kind cluster, two Helm charts, and Jaeger
- Bulkhead pattern: isolating resources (pools, connections, threads) per component so one component’s failure or overload cannot exhaust what others need. Taught in Chapter 9: Cloud Native Architecture
- Burn check: a single query of the canary’s SLO burn rate after the bake, compared against a threshold. Taught in 1.3 Design review: the whole system
- Burn rate: the observed error ratio divided by ; how many times faster than allowed the budget is being spent. Taught in 1.1 Design review: the tracer and the serving platform
- Burn rate: , how many times faster than allowed the error budget is being spent. Taught in 7.12 ModelRelease: gates, canary, burn check, and rollback
- burn rate: the error ratio divided by the error budget; 1 spends the budget exactly over the period. Taught in 11.4 SLOs and multi-window burn-rate alerts
- Cache penetration: repeated lookups of keys that do not exist, which always miss. Taught in Chapter 6: Distributed Data and Caching
- Cache stampede: many simultaneous misses on one expired hot key, all hitting the backing store. Taught in Chapter 6: Distributed Data and Caching
- Cache-aside: the application reads the cache, and on a miss loads from the database and fills the cache. Taught in Chapter 6: Distributed Data and Caching
- Cacheable request: one whose answer is a function of the request:
temperature0, or a fixedseed. Taught in 6.1 Response cache: LRU, TTL, singleflight, and tenant-scoped keys - Canary: a release step that sends a fraction (
canary_weight) of a model’s traffic to the new version before promotion. Taught in 1.3 Design review: the whole system - Canary: a new model given a small share of a route’s traffic while the rest stays on the old backends. Taught in 7.12 ModelRelease: gates, canary, burn check, and rollback
- Canary analysis: comparing a new version’s metrics against the baseline while it serves a small share of traffic, to decide whether to continue the rollout. Taught in Chapter 11: Observability
- Canary gate: numeric thresholds, written in advance, that a canary must hold before the rollout advances. Taught in 12.5 The KV format v2 migration
- Cancel request: a
WorkflowExecutionCancelRequestedevent that asks a workflow to stop; the workflow, not the server, ends the run. Taught in 7.8 Signals, cancellation, and sagas - Canonical form: the request body with defaults filled, ignored fields dropped, numbers normalized, and keys sorted, so equal questions have equal bytes. Taught in 6.1 Response cache: LRU, TTL, singleflight, and tenant-scoped keys
- CAP theorem: during a network partition, a replicated store must choose consistency (refuse possibly stale reads) or availability (serve them); it cannot have both. Taught in Chapter 1: System Design
- Capacity during replacement: the headroom the remaining replicas have while a lost one is rescheduled and warmed up. Taught in 12.2 A decode worker dies mid-stream
- capped label: a label that keeps its first 64 distinct values per process and folds later ones into
_other. Taught in 11.3 Metrics and log correlation - Check-then-act race: two callers both passing a check before either acts on it, which a shared lock across check and act prevents. Taught in 7.2 The workflow service
- Check-then-act race: a bug in which two callers both pass a check before either performs the action. Taught in Chapter 13: Case Study: Exactly-Once Event API
- Circuit breaker: a wrapper that stops calling a failing dependency after repeated errors and fails fast for a while, preventing cascading failures and giving the dependency time to recover. Taught in Chapter 9: Cloud Native Architecture
- Cluster Autoscaler: the component (or Karpenter) that adds nodes when Pods cannot be scheduled and removes underused ones, which is why scaling Pods can wait on a new machine to boot. Taught in Chapter 10: Kubernetes Workloads and Deployment
- Cohort: a controlled group of clients moved to the new version together. Taught in 12.6 The API v2 migration
- Columnar interchange: a shared in-memory columnar layout that lets systems pass tables without serialization (Arrow, ADBC). Taught in Appendix A: The Apache Ecosystem
- Command: a decision returned by a workflow task (schedule an activity, complete, fail, …), turned into events by a handler in the command table. Taught in 7.4 The task protocol and workers
- Command matching: comparing each command the replaying code issues against the event recorded for it, in order. Taught in 7.6 Deterministic replay
- Command query responsibility segregation (CQRS): separate models for writes and reads, where writes go to an event store or write model and are projected into read-optimized views. Taught in Chapter 1: System Design
- Commit point: the log append after which a batch is durable and the RPC is considered done. Taught in 7.2 The workflow service
- Commit rule: before the first byte, retry elsewhere; after it, end the stream with an SSE
errorevent. Taught in 12.2 A decode worker dies mid-stream - Committed entry: an entry on a majority whose commit was decided by an entry of the leader’s current term. Taught in 7.10 Raft high availability for the durable log (optional)
- Compaction: a designed operation that reclaims log space safely, as opposed to deleting segments by hand. Taught in 12.12 The event log disk fills up
- Compensation: an idempotent activity that semantically undoes a forward step. Taught in 7.8 Signals, cancellation, and sagas
- Compute/storage separation: an architecture in which serving nodes hold no durable data, so serving and storage scale independently (Pulsar with BookKeeper, the lakehouse). Taught in Appendix A: The Apache Ecosystem
config_path: the containerd setting that enables per-host registry directories under/etc/containerd/certs.d. Taught in 10.3 kind cluster, local registry, and port mappings- Configuration drift: the live cluster differing from what the chart would deploy, caused by out-of-band
kubectlchanges. Taught in 12.1 First drill: the engine crashloops - Consensus protocol: a protocol such as Raft or Paxos that makes a group of nodes agree on one value or log despite failures; it underlies etcd and ZooKeeper. Taught in Chapter 1: System Design
- Consistency check: a follower accepts entries only if it holds the entry just before them with the same term. Taught in 7.10 Raft high availability for the durable log (optional)
- Consistent hashing: placing nodes and keys on a ring so membership changes move minimal data. Taught in Chapter 6: Distributed Data and Caching
- Consumer group: a set of consumers that divide a topic’s partitions among themselves; different groups each see every message. Taught in 5.3 Coordination and technology choice
- Consumer group rebalance: reassigning a topic’s partitions among a consumer group’s members when one joins, leaves, or is presumed dead; within a group each partition has exactly one owner, so the partition count caps useful parallelism. Taught in Chapter 7: Durable Orchestration and Workers
- Consumer lag: log-end offset minus committed offset; the backlog a group still has to process. Taught in 5.3 Coordination and technology choice
- Content delivery network (CDN): a network of edge servers that serves static content close to users, pulling from or pushed by the origin and controlled by
Cache-Controlheaders. Taught in Chapter 1: System Design - context guard: a
fail()at the top of the Tiltfile that refuses any kube context but the intended one. Taught in 10.5 The Tilt dev loop - Context propagation: carrying the trace id and span id across service boundaries, in headers such as W3C Trace Context’s
traceparent, so one request across many services forms one trace. Taught in Chapter 11: Observability - Continue-As-New: closing a run and starting a fresh one under the same workflow id with carried state, to bound history. Taught in 7.6 Deterministic replay
- Contract suite: tests that exercise behaviour at an interface (OpenAPI conformance, ABI and format tests). Taught in 12.7 A breaking dependency upgrade
- Control plane: the API server, etcd, scheduler, and controller manager, which store desired state and decide what should run where; worker nodes carry out those decisions. Taught in Chapter 10: Kubernetes Workloads and Deployment
- Control workload: a steady, well-behaved tenant whose TTFT measures whether recovery is fair. Taught in 12.10 A noisy neighbor
- cooldown period: how long KEDA waits after demand falls before scaling down. Taught in 10.7 Durable and worker images and charts
- Cooperative rebalancing: an incremental rebalance protocol that revokes only the partitions that must move while other members keep consuming, unlike eager rebalancing, which stops the whole group. Taught in Chapter 7: Durable Orchestration and Workers
- Coroutine: the workflow goroutine that runs only while the engine waits, making replay order a function of code and history. Taught in 7.6 Deterministic replay
- counter: a metric whose value only grows, resetting to 0 on restart. Taught in 11.3 Metrics and log correlation
- CrashLoopBackOff: the pod status while the kubelet waits, with doubling delay capped at 5 minutes, before restarting a container that keeps exiting. Taught in 12.1 First drill: the engine crashloops
- CRC-32C: the Castagnoli 32-bit cyclic redundancy check, detecting all error bursts up to 32 bits. Taught in 7.1 The append-only event log
- Cross-layer finding: a problem that belongs to no single layer, such as a shared resource or a decision that depends on another layer’s numbers. Taught in 1.3 Design review: the whole system
- Cursor-based pagination: paging with an opaque cursor that names the last item seen (keyset pagination in a database), which stays consistent under concurrent writes where offset pagination skips or repeats items. Taught in Chapter 1: System Design
- Custom resource definition (CRD): a schema that adds a new resource type to the Kubernetes API, so the cluster can store and serve objects of that kind. Taught in Chapter 9: Cloud Native Architecture
- DaemonSet: a Kubernetes object that runs one Pod on every node, used for per-node agents such as log shippers and monitoring. Taught in Chapter 9: Cloud Native Architecture
- Dark launch: deploying new code to production with its behavior hidden from users, so it can be exercised and observed before release. Taught in Chapter 11: Observability
- dashboard as code: a dashboard whose JSON lives in git and loads unchanged into any fresh Grafana. Taught in 11.5 Dashboards as code for the serving path
- Data incident: bad or disallowed input that corrupts training or evaluation without any service failing. Taught in 12.9 A data incident
- datasource variable: a template variable that resolves to whichever Prometheus datasource the Grafana has. Taught in 11.5 Dashboards as code for the serving path
- Dead letter: an activity whose retries are exhausted, parked in the DLQ with
ActivityDeadLettereduntil an operator redrives it. Taught in 7.5 Activities - Dead-letter queue: where a task goes after exhausting its budget; nothing retries it until a human redrives it. Taught in 12.4 A poison task lands in the dead-letter queue
- Dead-letter queue (DLQ): where a task is parked after attempts, to be redriven by an operator. Taught in 7.3 The task queue
- dead-letter queue (DLQ): where the system parks tasks it has given up retrying. Taught in 11.6 Observability for the control plane
- Deployment: a declaration to run N copies of a pod template, implemented by one ReplicaSet per template version. Taught in 12.1 First drill: the engine crashloops
- deployment coordinates: kube context, namespace, gateway URL, traces URL, and workload names, the five facts any tool needs to operate on the cluster. Taught in 10.1 Tracer deploy: images, a kind cluster, two Helm charts, and Jaeger
- Design document: a description of a system or change, before or while it is built, holding many decisions and the arithmetic that ties them together. Taught in 1.1 Design review: the tracer and the serving platform
- Design review: a reader who did not write the document checking it against a rubric and returning comments and a decision. Taught in 1.1 Design review: the tracer and the serving platform
- Detached runtime: a view of the Runtime, from
Detached(), whose calls ignore the cancel request so cleanup can run. Taught in 7.8 Signals, cancellation, and sagas - digest: the SHA-256 of an image’s manifest (or index), naming exactly one image. Taught in 10.2 Dockerfiles for the gateway and the engine
- Distributed monolith: microservices that must be deployed together, carrying all the coupling of a monolith plus the latency and partial failure of network calls. Taught in Chapter 2: Software Architecture
- Drain: on shutdown, stopping polls at once while letting running activities finish and report, up to a timeout. Taught in 7.4 The task protocol and workers
- Drill profile: burn-rate windows compressed 12x (5 min and 25 s) so a short drill can page. Taught in 12.2 A decode worker dies mid-stream
- Durability point: the fsync after which an append is acknowledged. Taught in 12.12 The event log disk fills up
- Durable execution: persisting the progress of a long-running computation step by step, so it can crash and resume where it left off without redoing completed work; Temporal, Cadence, and DBOS provide it. Taught in Chapter 7: Durable Orchestration and Workers
- Durable timer: a timer whose existence and deadline are recorded in history as
TimerStarted{fire_at}, so it survives any restart. Taught in 7.7 Durable timers
- Effect: an action outside the history derived from an event, such as enqueueing a task or arming a timer; keyed so that redoing it is harmless. Taught in 7.2 The workflow service
- Effectively-once processing: at-least-once delivery combined with an idempotent effect. Taught in Chapter 13: Case Study: Exactly-Once Event API
- Election restriction: a voter grants only to a candidate whose log is at least as up to date as its own, comparing last term, then last index. Taught in 7.10 Raft high availability for the durable log (optional)
- Error budget: the bad events an objective allows over its period, as a full outage. Taught in 1.1 Design review: the tracer and the serving platform
- error budget: , the fraction of requests allowed to be bad. Taught in 11.4 SLOs and multi-window burn-rate alerts
- ETag and
If-Match: a version tag on the route table and the request header that makes aPUTsucceed only if the table has not changed. Taught in 7.12 ModelRelease: gates, canary, burn check, and rollback - Eval cadence: the optional durable wait,
eval_interval_seconds, between an evaluation and the next segment. Taught in 7.11 Platform workflows: TrainRun and EvalSuite - Evaluation period: the spec’s
eval_every, the number of steps between evaluations and therefore the segment size. Taught in 7.11 Platform workflows: TrainRun and EvalSuite - Event sourcing: storing only the history of changes and deriving all state from it. Taught in 7.2 The workflow service
- Event-driven architecture: components that communicate asynchronously through events, highly decoupled; it suits complex, real-time, independently evolving systems but not simple CRUD or strictly ordered work. Taught in Chapter 2: Software Architecture
EventSource: the browser API that opens an SSE stream, parses events, and reconnects automatically. Taught in Chapter 4: Streaming and SSE- Evidence: a reproducible measurement, such as a drill’s numbers or a postmortem’s timeline, as opposed to an assertion. Taught in 1.3 Design review: the whole system
- exec-form
ENTRYPOINT: a JSON-array entrypoint that runs the binary directly as PID 1 and receives the Pod’sargs:. Taught in 10.1 Tracer deploy: images, a kind cluster, two Helm charts, and Jaeger - Expected version: the stream version an appender believes is current; the append fails with
ErrVersionConflictif it is not. Taught in 7.1 The append-only event log - Exponential backoff: a retry delay that grows by a constant factor per failure, up to a cap. Taught in 7.5 Activities
- Exposure: the system properties (one replica, no checkpoints) that turn an ordinary trigger into an incident. Taught in 12.3 The durable server is SIGKILLed in a loop during a corpus build
- extract / start / inject: the three steps of a hop: read the caller’s span context, start a child span, and send the calling span’s context onward. Taught in 11.2 Tracing for the serving path
- extraPortMapping: a kind setting that publishes a node container’s port on your machine, fixed when the node is created. Taught in 10.3 kind cluster, local registry, and port mappings
- Fail closed: treating missing evidence (no row, no data, a failed query) as a failure. Taught in 7.12 ModelRelease: gates, canary, burn check, and rollback
FAILED_PRECONDITION: the gRPC code a v1-only reader returns for a version 2 envelope. Taught in 12.5 The KV format v2 migration- Failpoint: a named hook that injects a fault (
crash,panic,error(msg),sleep(d)) for testing. Taught in 12.4 A poison task lands in the dead-letter queue - failure domain: a unit (here, a Deployment) whose failure or overload does not take others down with it. Taught in 10.8 The agent image and chart
- Fan-out on write / fan-out on read: two ways to build feeds: push each post into every follower’s feed when it is written, or pull from followed accounts when a feed is read; large systems combine them, pulling for accounts with huge followings. Taught in Chapter 1: System Design
- Feature flag: a runtime switch that turns behavior on or off without a deploy, decoupling deploying code from releasing it. Taught in Chapter 9: Cloud Native Architecture
- Fencing token: a number that grows with every delivery of a task; only the current lease’s token may heartbeat or complete. Taught in 1.2 Design review: the control plane
- Fencing token: a strictly increasing number per delivery; only the current token, before its deadline, may act on the task. Taught in 7.3 The task queue
- File format: how one file’s bytes are encoded on disk (Parquet, ORC). Taught in Appendix A: The Apache Ecosystem
- First bad commit: the earliest revision on which the regression reproduces, confirmed against its parent. Taught in 12.8 A performance regression bisect
- Fix forward: correcting an incident by shipping a new change rather than reverting, done after mitigation and through the normal release path. Taught in Chapter 12: Incident Response and Recovery
- Flame graph: a visualization of sampled stack traces in which each frame’s width is the share of time spent in it; the widest frames show where time goes. Taught in Chapter 7: Durable Orchestration and Workers
- Fold: computing a value by applying a function to each element of a sequence in turn; here, run state is a fold of
applyover the history. Taught in 7.2 The workflow service - Forward trace: following a bad source through manifests to the shards, token streams, checkpoints, evaluations, and releases built from it. Taught in 12.9 A data incident
fsGroup: a Pod security setting that gives the Pod’s group ownership of mounted volume files. Taught in 10.4 Helm charts and the observability stack- Full jitter: replacing the backoff with a uniform draw in , so retries do not synchronise. Taught in 7.5 Activities
- Game day: a scheduled exercise that injects a known fault into a running system so the team practises detection, mitigation, and runbooks before a real incident. Taught in Chapter 12: Incident Response and Recovery
- Gate: a check that must pass before a release proceeds; here the model card, the ledger, and eval rows, all failing closed. Taught in 7.12 ModelRelease: gates, canary, burn check, and rollback
- gauge: a metric whose value goes up and down. Taught in 11.3 Metrics and log correlation
git bisect run: git’s binary search over history, driven by a script whose exit code marks each revision good or bad. Taught in 12.8 A performance regression bisect- GitOps: a deployment model in which a tool such as Argo CD or Flux syncs a cluster to a git repository, making git the source of truth so infrastructure changes get an audit trail, review, and rollback by revert. Taught in Chapter 9: Cloud Native Architecture
- Gossip protocol: nodes repeatedly exchange state with random peers so information spreads epidemic-style to the whole cluster, as in Cassandra and SWIM membership. Taught in Chapter 1: System Design
- Group commit: sharing one
fsyncamong several concurrent appends. Taught in 7.1 The append-only event log
- Half-open TTL: an entry valid on , dead at exactly . Taught in 6.1 Response cache: LRU, TTL, singleflight, and tenant-scoped keys
- Head-of-line blocking: one stuck item at the front of an ordered queue or partition stalling everything behind it; a dead-letter queue breaks it for poison messages. Taught in Chapter 7: Durable Orchestration and Workers
- HEALTHCHECK: a Dockerfile instruction that makes Docker run a command in the container periodically and mark it
healthyorunhealthy. Taught in 10.2 Dockerfiles for the gateway and the engine - Heartbeat: a periodic SSE comment line (
: ping) that keeps idle connections from timing out. Taught in Chapter 4: Streaming and SSE - Heartbeat: a call that extends a live lease and records small progress details. Taught in 7.3 The task queue
- Heartbeat details: small progress data recorded with a heartbeat and handed to the next attempt so it can resume. Taught in 7.5 Activities
- Heartbeat details: the bytes sent with each heartbeat and returned to the next attempt; here, the last complete checkpoint path. Taught in 7.9.4 Failure tests and integration
- Heartbeat watchdog: the worker-side timer that cancels an activity, without reporting, once its heartbeat timeout passes. Taught in 7.4 The task protocol and workers
- heatmap format: the target format that tells Grafana to subtract neighbouring cumulative bucket rates into cells. Taught in 11.5 Dashboards as code for the serving path
- High cardinality: an attribute with many unique values, such as user or request ids; metrics cannot afford it, but structured events can, and it is what lets you isolate one user’s or one request’s behavior. Taught in Chapter 11: Observability
- High dimensionality: many attributes per event; rich structured events are what make arbitrary new queries possible. Taught in Chapter 11: Observability
- histogram: a set of cumulative bucket counters, one per bound
le, plus a sum and a count. Taught in 11.3 Metrics and log correlation - Horizontal Pod Autoscaler (HPA): the Kubernetes controller that adds or removes Pod replicas based on CPU, memory, or custom metrics; the default for stateless services, but a poor fit for queue workers. Taught in Chapter 10: Kubernetes Workloads and Deployment
- Horizontal scaling: adding capacity by adding machines; more complex but effectively unlimited, and it suits stateless services. Taught in Chapter 1: System Design
hosts.toml: a containerd per-registry file that redirects pulls for one registry host to another endpoint. Taught in 10.3 kind cluster, local registry, and port mappings
- Idempotency: the property that applying an operation more than once has the same effect as applying it once. Taught in Chapter 3: RPC and Protocols
- Idempotency: the property that applying the same message twice has the same effect as applying it once. Taught in 5.3 Coordination and technology choice
- Idempotency key: an identifier stable across attempts (
<workflow id>/<activity id>) that lets an effect detect and skip or resume a duplicate. Taught in 1.2 Design review: the control plane - Idempotency key:
"<workflow_id>/<activity_id>", stable across attempts and runs, so an activity’s effect can be applied once. Taught in 7.4 The task protocol and workers - Idempotency key:
"<workflow_id>/<activity_id>", identical on every attempt, which the effect’s receiver deduplicates on. Taught in 7.5 Activities - Idempotency key: the key an activity uses to find its work directory so a rerun produces the same files as the first run. Taught in 12.3 The durable server is SIGKILLed in a loop during a corpus build
- Idempotency key: an identifier that makes repeating a request have the same effect as making it once. Taught in Chapter 13: Case Study: Exactly-Once Event API
- Idempotent by desired state: an activity that compares the current state with the one it wants and does nothing when they match. Taught in 7.12 ModelRelease: gates, canary, burn check, and rollback
- Idempotent start:
StartWorkflowreturning the existing run for a repeated identical request instead of creating another. Taught in 7.2 The workflow service - image target: a
docker_builddeclaration; Tilt substitutes its image into containers whose repository equals the ref. Taught in 10.5 The Tilt dev loop - Indeterminate: the status of an agent run whose write was started but whose outcome was not recorded; it waits for a human
reconcile. Taught in 1.2 Design review: the control plane - Inverted index: a map from each term to the sorted list of documents that contain it. Taught in Chapter 8: Search and Indexing
- job id: the fixed name of a workflow job, which branch protection uses to require it. Taught in 10.6 CI for the platform repo
- KEDA: an operator that scales workloads on external metrics by creating and driving an HPA. Taught in 10.7 Durable and worker images and charts
- KRaft: Kafka’s Raft-based controller quorum that stores cluster metadata in an internal log and replaced ZooKeeper. Taught in 5.3 Coordination and technology choice
- kubelet: the agent on every node that starts the containers of Pods assigned to that node, runs their probes, and reports their status to the API server. Taught in Chapter 10: Kubernetes Workloads and Deployment
- Kubernetes Operator: a controller that reconciles custom resources, encoding the operational knowledge of running a particular system (such as a database) in software. Taught in Chapter 9: Cloud Native Architecture
- KV format v2: fp8 (E4M3) payloads with one f32 scale per (layer, K or V, head) slab. Taught in 12.5 The KV format v2 migration
- Lamport timestamp: a single logical counter, incremented on each event and advanced past any received timestamp, that gives a total order consistent with causality. Taught in Chapter 1: System Design
- Last known good image: the tagged artifact that already ran in production, kept so rollback is a redeploy. Taught in 12.7 A breaking dependency upgrade
Last-Event-ID: the header a reconnecting client sends with the id of the last event it received, enabling replay. Taught in Chapter 4: Streaming and SSE- Layered architecture: a stack of presentation, business logic, persistence, and database layers, each calling only the layer below; it suits CRUD applications and small teams. Taught in Chapter 2: Software Architecture
- Lease: a time-limited claim on a task, made of a visibility timeout and a fencing token. Taught in 1.2 Design review: the control plane
- Lease: temporary ownership of a task by one worker, until a deadline. Taught in 7.3 The task queue
- Lease and visibility timeout: a worker’s time-limited claim on a task; if it is not renewed by a heartbeat within , the task becomes visible again. Taught in 12.3 The durable server is SIGKILLed in a loop during a corpus build
- Ledger row: the provenance record of one source:
url,license_spdx,sha256,n_docs,allowed_uses, and what was kept. Taught in 12.9 A data incident - Linearizability: every operation appears to take effect at one point between its invocation and response, consistent with a sequential object. Taught in 7.10 Raft high availability for the durable log (optional)
- Linearizability check: verification that every acknowledged write is present, in order, as if executed on a single copy. Taught in 12.13 A Raft partition (optional)
- listenAddress: the host interface a mapping binds to;
127.0.0.1keeps it local. Taught in 10.3 kind cluster, local registry, and port mappings - Little’s law: , requests in the system equal arrival rate times time in the system, with no distributional assumptions. Taught in 1.1 Design review: the tracer and the serving platform
- live update: patching a running container (sync files, run commands) instead of replacing the Pod. Taught in 10.5 The Tilt dev loop
- Load balancer: a component that spreads traffic across instances of a service by round-robin, least connections, or consistent hashing, at layer 4 (TCP) or layer 7 (HTTP). Taught in Chapter 1: System Design
- local resource: a command on your machine that reruns when its
depschange. Taught in 10.5 The Tilt dev loop - local-registry-hosting ConfigMap: the KEP-1755 standard way to advertise a cluster’s local registry to tools. Taught in 10.3 kind cluster, local registry, and port mappings
- Lockfile: the file that pins the whole resolved dependency graph so every build uses the same set. Taught in 12.7 A breaking dependency upgrade
- Log: an append-only, ordered sequence of messages retained for a window regardless of who has read it. Taught in 5.3 Coordination and technology choice
- Log matching property: two logs that share an entry with the same index and term are identical up to it. Taught in 7.10 Raft high availability for the durable log (optional)
- Long poll: a poll that waits for work and returns as soon as some arrives. Taught in 7.3 The task queue
- low cardinality: a naming rule that keeps the set of distinct span names small, using route patterns instead of raw paths. Taught in 11.2 Tracing for the serving path
- LRU: an eviction policy that removes the least recently used entry when capacity is exceeded. Taught in 6.1 Response cache: LRU, TTL, singleflight, and tenant-scoped keys
- Majority quorum: the 2 of 3 replicas that must store an entry before it is committed. Taught in 12.13 A Raft partition (optional)
- Marshalling: serializing a call’s arguments or result into bytes for the wire. Taught in Chapter 3: RPC and Protocols
maxUnavailable: the PDB field giving the number of Pods that may be unavailable; with replicas, may be evicted at once. Taught in 10.4 Helm charts and the observability stack- Mediator topology / broker topology: the two shapes of event-driven architecture: a central mediator orchestrates event processing, or events flow through channels from component to component with no central coordinator. Taught in Chapter 2: Software Architecture
- Membership change: adding or removing replicas, which must not happen while the cluster is partitioned. Taught in 12.13 A Raft partition (optional)
- Microkernel architecture: a minimal, stable core extended by plug-in modules tracked in a registry; the shape of IDEs, browsers, and other products built for extensibility. Taught in Chapter 2: Software Architecture
- Microservices architecture: independently deployable services, each owning its data, with boundaries drawn from bounded contexts; it pays off for large teams and different scaling needs, not for small teams or unclear domains. Taught in Chapter 2: Software Architecture
- Mitigation before root cause: restoring service first, usually by rolling back the change that started the incident, and finding the cause afterwards, because diagnosis under pressure is slow. Taught in Chapter 12: Incident Response and Recovery
- Modular monolith: one deployable application with strong internal module boundaries, often a better starting point than microservices while domain boundaries are still being discovered. Taught in Chapter 2: Software Architecture
- moving ref / pinned ref: a branch whose code changes without a commit here, versus a release tag or commit sha. Taught in 10.6 CI for the platform repo
- multi-window alert: an alert that fires only when the burn rate exceeds its factor over both a long and a short window. Taught in 11.4 SLOs and multi-window burn-rate alerts
needs:: a job dependency that delays one job until others pass. Taught in 10.6 CI for the platform repo- Network partition: a split that leaves some replicas unable to reach others. Taught in 12.13 A Raft partition (optional)
- NetworkPolicy: a Kubernetes object that acts as a pod-to-pod firewall; without one, every Pod can reach every other Pod. Taught in Chapter 10: Kubernetes Workloads and Deployment
- No-op entry: an empty entry a new leader appends in its own term so earlier entries can commit. Taught in 7.10 Raft high availability for the durable log (optional)
- Noisy neighbor: a tenant whose load degrades other tenants’ latency on shared resources. Taught in 12.10 A noisy neighbor
- Non-retryable failure: a failure that cannot succeed on retry, marked by the activity or named by the policy; it ends the activity at once. Taught in 7.5 Activities
- Nondeterminism: a mismatch between replayed commands and history, reported as
ErrNondeterminism. Taught in 7.6 Deterministic replay
- Observability-driven development: instrumenting a feature before or as it is built, on the rule that you cannot operate what you cannot observe. Taught in Chapter 11: Observability
- OCI labels:
org.opencontainers.image.*keys in the image config that record title, source, version, and revision. Taught in 10.2 Dockerfiles for the gateway and the engine - Offset: the monotonic position of a message within a partition; consumers record the offset they have processed up to. Taught in 5.3 Coordination and technology choice
- Offset clock: the wall clock plus a non-decreasing offset, used to move time forward in tests and drills. Taught in 7.7 Durable timers
- OLTP / OLAP: transactional workloads of many small row-oriented operations / analytical workloads of large column-oriented scans. Taught in Chapter 6: Distributed Data and Caching
- OOMKilled: the termination reason for a container killed for exceeding its memory limit (exit code 137); it is a kill, not a slowdown. Taught in Chapter 10: Kubernetes Workloads and Deployment
- OpenTelemetry (OTel): the vendor-neutral standard for traces, metrics, and logs, made of an SDK, a collector, and exporters. Taught in Chapter 11: Observability
- OpenTelemetry Collector: the service that receives OTLP, processes it, and exports traces and metrics to their backends. Taught in 11.3 Metrics and log correlation
- OTLP: the OpenTelemetry Protocol for exporting telemetry, here as an HTTP POST to
/v1/traces. Taught in 11.1 One trace from gateway to engine - Outside-in triage: diagnosing a failing Kubernetes workload from the outside in: which workload is unhealthy, why its last container exited, what its previous log says, and what changed in its rollout history. Taught in Chapter 12: Incident Response and Recovery
ParentBased: a sampler wrapper that applies the inner sampler only to roots and makes children copy the parent’s sampled flag. Taught in 11.2 Tracing for the serving path- Partial failure: a remote call that times out, loses its response, or executes only partly. Taught in Chapter 3: RPC and Protocols
- Per-tenant series: metrics labelled by
tenant, which attribute load and rejections to their source. Taught in 12.10 A noisy neighbor - Per-version signal: a metric split by API version so a small cohort’s regression stays visible. Taught in 12.6 The API v2 migration
- perf gate: a job that fails when a load metric regresses past a threshold against a baseline. Taught in 10.6 CI for the platform repo
permissions:: the scopes granted to the workflow’sGITHUB_TOKEN; read-only by default in this workflow. Taught in 10.6 CI for the platform repo- PersistentVolumeClaim (PVC): a request for storage that outlives any one Pod. Taught in 10.4 Helm charts and the observability stack
- PodDisruptionBudget: a limit on how many pods voluntary evictions may take at once. Taught in 12.2 A decode worker dies mid-stream
- PodDisruptionBudget (PDB): an object that limits how many Pods of a set voluntary evictions may take down at once. Taught in 10.4 Helm charts and the observability stack
- PodMonitor: a Prometheus Operator object that scrapes a named container port of matching pods. Taught in 11.3 Metrics and log correlation
- Poison task: a task that fails or crashes its worker on every attempt. Taught in 7.3 The task queue
- Poison task: a task that fails the same way on every attempt, so retries cannot fix it. Taught in 12.4 A poison task lands in the dead-letter queue
- Postings list: the sorted
(doc_id, term_frequency, [positions])entries for one term. Taught in Chapter 8: Search and Indexing - Process group: the set of processes led by the child, signalled together with
kill(-pgid, sig). Taught in 7.9.4 Failure tests and integration - Progressive delivery: releasing in stages from canary to a percentage rollout to full rollout, with automatic rollback when an SLO is violated. Taught in Chapter 11: Observability
- Propagated cancellation: cancellation that ends in-flight LLM requests and tool subprocesses, not just the loop. Taught in 12.11 A runaway agent
- provisioning sidecar: the Grafana companion that loads every ConfigMap labelled
grafana_dashboard: "1". Taught in 11.5 Dashboards as code for the serving path - Publish by rename: writing to a temp file, fsyncing, and renaming, so a reader sees the old file or the whole new one. Taught in 7.9.4 Failure tests and integration
- push metrics: metrics a short-lived process sends over OTLP to the collector instead of serving them for a scrape. Taught in 11.6 Observability for the control plane
- Quality attribute: a non-functional property such as performance, scalability, availability, fault tolerance, security, maintainability, or testability; quality attributes, not features, drive architecture, and every decision trades one for another. Taught in Chapter 2: Software Architecture
- Quarantine: pausing releases and training that consume a suspect corpus until its scope is known. Taught in 12.9 A data incident
- Quorum: requiring write and read acknowledgements out of replicas, with for overlapping reads and writes. Taught in Chapter 6: Distributed Data and Caching
- Quorum: a majority of the members, ; any two quorums intersect. Taught in 7.10 Raft high availability for the durable log (optional)
$__rate_interval: a Grafana variable of at least four scrape intervals, used as therate()window. Taught in 11.5 Dashboards as code for the serving path- Readers before writers: the rollout order in which every consumer accepts the new format before any producer emits it. Taught in 12.5 The KV format v2 migration
- Readiness: the condition that lets a Service send traffic to a pod and lets a rolling update remove the old one. Taught in 12.1 First drill: the engine crashloops
- readiness probe / liveness probe: checks that, on failure, remove a Pod from its Service or restart its container, respectively. Taught in 10.1 Tracer deploy: images, a kind cluster, two Helm charts, and Jaeger
- Real-time OLAP: sub-second aggregation over fresh event data, served from columnar segments (Druid, Pinot). Taught in Appendix A: The Apache Ecosystem
- Reconciliation loop / control loop: a controller’s endless cycle of observing actual state, diffing it against declared desired state, and acting to close the gap; every Kubernetes behavior follows from it. Taught in Chapter 10: Kubernetes Workloads and Deployment
- Record: the unit of the log on disk: a 16-byte header (length, CRC-32C, sequence number) followed by the payload. Taught in 7.1 The append-only event log
- recording rule: a Prometheus rule that precomputes an expression as a new series. Taught in 11.4 SLOs and multi-window burn-rate alerts
- redelivery: a task handed to a worker again because the previous worker died or its lease expired. Taught in 11.6 Observability for the control plane
- Redelivery: handing a task out again after its lease expired. Taught in 12.3 The durable server is SIGKILLed in a loop during a corpus build
- Redrive: returning a dead letter to the queue as attempt 1. Taught in 7.5 Activities
- Redrive: putting a dead-lettered task back in its queue with a fresh attempt budget. Taught in 12.4 A poison task lands in the dead-letter queue
- Refresh: the cheap operation that makes buffered documents searchable, as opposed to flush (write a segment) and commit (durable fsync checkpoint). Taught in Chapter 8: Search and Indexing
- registry: a server that stores and serves images by name and digest over the OCI distribution API. Taught in 10.3 kind cluster, local registry, and port mappings
- Replay: re-running workflow code from the start against its history, so past results come from recorded events. Taught in 7.6 Deterministic replay
- ReplicaSet: the controller-managed object that keeps a fixed number of identical Pods running; a Deployment creates one per template revision and shifts replicas between them during a rollout. Taught in Chapter 10: Kubernetes Workloads and Deployment
- Request id: a caller-chosen id that makes a signal idempotent; stored in run state rebuilt from history. Taught in 7.8 Signals, cancellation, and sagas
- Reserved capacity: a share of the engines guaranteed to a tenant regardless of others’ load. Taught in 12.10 A noisy neighbor
- Resolved graph: the full set of direct and transitive dependencies actually selected, shown by
go mod graph,cargo tree, oruv pip tree. Taught in 12.7 A breaking dependency upgrade - resource: the part of an OTLP payload that identifies the sender, such as
service.name. Taught in 11.1 One trace from gateway to engine - resource graph: Tilt’s model of image builds, local commands, and workloads, with dependencies, rerun only where a change reaches. Taught in 10.5 The Tilt dev loop
- Resource requests and limits: a container’s
requestsare what the scheduler reserves for it and itslimitsare the hard cap; exceeding a memory limit kills the container, while exceeding a CPU limit only throttles it. Taught in Chapter 10: Kubernetes Workloads and Deployment resource_deps: the resources that must be ready before another starts. Taught in 10.5 The Tilt dev loopRESOURCE_EXHAUSTED: the gRPC code for an append rejected at quota; nothing is appended. Taught in 12.12 The event log disk fills up- Retry budget: the bounded number of attempts () with exponential backoff and jitter before a task is set aside. Taught in 12.4 A poison task lands in the dead-letter queue
- Retryable failure: a failure type (crash, panic, exit 75) that the queue retries; exit 65 is non-retryable. Taught in 12.4 A poison task lands in the dead-letter queue
- Revision: a configuration epoch folded into every key so a route change makes old entries unreachable. Taught in 6.1 Response cache: LRU, TTL, singleflight, and tenant-scoped keys
- Rollout: a change to the pod template, which creates a new ReplicaSet and a new revision. Taught in 12.1 First drill: the engine crashloops
- RPC: a remote call presented as a local function call through a generated stub. Taught in Chapter 3: RPC and Protocols
- Rubric: the fixed list of eight questions a design is judged against. Taught in 1.1 Design review: the tracer and the serving platform
- rule selector: the label selector Prometheus uses to decide which
PrometheusRuleandServiceMonitorobjects to load. Taught in 10.4 Helm charts and the observability stack - run journal: the durable record under
/artifacts/agent-runsthat lets a retried activity replay completed steps. Taught in 10.8 The agent image and chart - Run-to-run spread: the variation in a metric across repeated runs of the same profile; a regression must exceed it. Taught in 12.8 A performance regression bisect
- Runaway agent: an agent run that keeps calling the model or tools without converging, spending budget without useful work. Taught in 12.11 A runaway agent
- Runbook: a how-to guide for one symptom, written before the incident for the next person on call. Taught in 12.1 First drill: the engine crashloops
- Saga: a sequence of steps with recorded compensating actions that undo earlier steps on cancel or failure. Taught in 1.2 Design review: the control plane
- Saga: a sequence of forward steps each paired with a compensation, undone in reverse order on failure or cancel. Taught in 7.8 Signals, cancellation, and sagas
- Saved load profile: a fixed rate, mix, seed, duration, and warm-up that makes runs comparable. Taught in 12.8 A performance regression bisect
ScaledObject: the KEDA resource that names a scale target, bounds, and triggers. Taught in 10.7 Durable and worker images and charts- Scatter-gather: the read path in which a coordinator fans a query out to every shard and merges their top-k results. Taught in Chapter 8: Search and Indexing
- schedule-to-start latency: the time a task waits in its queue before a worker picks it up. Taught in 11.6 Observability for the control plane
- Scheduler: the control-plane component that binds each unscheduled Pod to a node by filtering out nodes that cannot fit it and scoring the rest. Taught in Chapter 10: Kubernetes Workloads and Deployment
- Schema resolution: Avro’s reconciliation of a reader’s schema with the writer’s schema stored alongside the data. Taught in Chapter 3: RPC and Protocols
- Scoped key: the SHA-256 of tenant, revision, path, and canonical body, separated by NUL bytes. Taught in 6.1 Response cache: LRU, TTL, singleflight, and tenant-scoped keys
- secret by reference: a chart that names a Secret and key via
secretKeyRefinstead of holding the value. Taught in 10.4 Helm charts and the observability stack secretKeyRef: a reference from a container’s environment variable to one key of a Secret. Taught in 10.1 Tracer deploy: images, a kind cluster, two Helm charts, and Jaeger- Segment: one log file, named by the 20-digit sequence number of its first record. Taught in 7.1 The append-only event log
- Segment: one
trainactivity that trains from the previous checkpoint to the end step . Taught in 7.11 Platform workflows: TrainRun and EvalSuite - Segment: a small, immutable, self-contained inverted index; a Lucene index is a set of them, compacted by background merges. Taught in Chapter 8: Search and Indexing
- series: one distinct combination of metric name and label values, stored separately. Taught in 11.3 Metrics and log correlation
- Server streaming: a gRPC call shape with one request and a stream of responses. Taught in Chapter 3: RPC and Protocols
- Server-Sent Events (SSE): a one-way, text-only stream of events over a single long-lived HTTP response with
Content-Type: text/event-stream. Taught in Chapter 4: Streaming and SSE - Service DNS name:
<service>.<namespace>.svc.cluster.local, a stable name for a Service that survives Pod replacement. Taught in 10.1 Tracer deploy: images, a kind cluster, two Helm charts, and Jaeger - Service level agreement (SLA): an SLO with business consequences, such as refunds or credits when it is missed. Taught in Chapter 11: Observability
- Service mesh: a layer of sidecar proxies, as in Istio or Linkerd, that handles mTLS, traffic splitting, circuit breaking, and tracing between services with no application changes, at an operational cost. Taught in Chapter 9: Cloud Native Architecture
- settings resolution order: defaults, then a
--configfile, then flags, then thePROVIDER_*environment. Taught in 10.8 The agent image and chart - Shard: one complete Lucene index holding a partition of a logical index; replicas are copies of it. Taught in Chapter 8: Search and Indexing
- Shard key: the field whose value decides which partition holds a record. Taught in Chapter 6: Distributed Data and Caching
- Side effect marker: a
MarkerRecordedevent holding the value of a non-deterministic function, returned on replay instead of calling it. Taught in 7.6 Deterministic replay - Sidecar pattern: attaching a helper container to each pod to handle a cross-cutting concern such as logging, proxying, or auth beside the main container. Taught in Chapter 9: Cloud Native Architecture
- Sift up / sift down: restoring the heap invariant by swapping an entry with its parent, or with its smaller child. Taught in 7.7 Durable timers
- SIGKILL: an uncatchable signal that ends a process between two instructions, leaving only what is on disk. Taught in 12.3 The durable server is SIGKILLed in a loop during a corpus build
- Signal: an external input to a running workflow, recorded as a
SignalReceivedevent in its history and delivered by replay. Taught in 7.8 Signals, cancellation, and sagas - Signal exit code: a process exit code of 128 + n, meaning the process was killed by signal n (137 is SIGKILL, often OOMKilled; 143 is SIGTERM); codes below 128 are the program’s own choice. Taught in Chapter 12: Incident Response and Recovery
- Single-leader / multi-leader / leaderless replication: the three replication topologies: one node accepts all writes; several nodes accept writes, typically one per data center; or any node accepts writes with Dynamo-style quorum reads and writes. Taught in Chapter 1: System Design
- Singleflight: coalescing concurrent misses for one key so a single leader goes upstream and the others wait for its result. Taught in 6.1 Response cache: LRU, TTL, singleflight, and tenant-scoped keys
- Sinkhole anti-pattern: requests passing through architectural layers that add no value, only indirection; the characteristic decay of a layered architecture. Taught in Chapter 2: Software Architecture
- SLI: the fraction of good requests over a window. Taught in 11.4 SLOs and multi-window burn-rate alerts
- SLO objective: the SLI value promised over a period, such as 0.99 over 30 days. Taught in 11.4 SLOs and multi-window burn-rate alerts
- Space-based architecture: processing units that each hold business logic and an in-memory data grid, replicated by middleware, with no central database in the request path; it suits spiky load such as ticket sales. Taught in Chapter 2: Software Architecture
- span: a record of one timed operation, with a trace id, span id, optional parent span id, name, kind, interval, and attributes. Taught in 11.1 One trace from gateway to engine
- span context: the triple of trace id, span id, and trace flags (plus
tracestate) that propagation carries between processes. Taught in 11.2 Tracing for the serving path - span kind: which side of a call a span measures: SERVER, CLIENT, or INTERNAL. Taught in 11.1 One trace from gateway to engine
- Splicing: continuing a stream from another replica, which produces plausible but wrong text. Taught in 12.2 A decode worker dies mid-stream
- stage-scoped
ARG: a build argument visible only in the stage where it is declared. Taught in 10.2 Dockerfiles for the gateway and the engine - start period: the initial window during which health-check failures do not count. Taught in 10.2 Dockerfiles for the gateway and the engine
- StatefulSet: a workload controller that gives each Pod a stable name and its own persistent claim, with ordered rollout. Taught in 10.7 Durable and worker images and charts
- Stateless workload / stateful workload: a stateless workload keeps its durable state elsewhere, so any replica is interchangeable and it runs as a Deployment; a stateful workload is the state, needing stable identity and its own volume as a StatefulSet. Taught in Chapter 10: Kubernetes Workloads and Deployment
- static binary: an executable that needs no C library at run time, produced by Go with
CGO_ENABLED=0. Taught in 10.2 Dockerfiles for the gateway and the engine - status recorder: a
ResponseWriterwrapper that captures the status code while forwardingFlushand exposingUnwrap. Taught in 11.2 Tracing for the serving path - Strangler fig: migrating away from a monolith by gradually routing more traffic to new services until the old system can be removed. Taught in Chapter 9: Cloud Native Architecture
- Stream: a named, versioned sequence of events in the log, such as
run/<run_id>orqueue/<name>. Taught in 7.1 The append-only event log - Subprocess activity: one attempt at one activity, run as a child process of a Go worker, whose interface is files, environment variables, signals, and an exit code. Taught in 7.9.4 Failure tests and integration
- Suite activity: one
evalactivity per evaluation suite, the unit of retry for evaluation. Taught in 7.11 Platform workflows: TrainRun and EvalSuite - Sunset: the announced date after which v1 answers 410
api_version_sunset. Taught in 12.6 The API v2 migration
- Table format: a metadata layer that turns a directory of data files into a transactional table with snapshots and schema evolution (Iceberg, Hudi, Delta). Taught in Appendix A: The Apache Ecosystem
- tag: a mutable, human-readable pointer from a name to an image manifest, moved by the publisher. Taught in 10.2 Dockerfiles for the gateway and the engine
- Tag number: the stable integer that identifies a Protobuf field on the wire in place of its name. Taught in Chapter 3: RPC and Protocols
- task queue: the durable server’s routing key; only pollers of queue
agentreceiveAgentRuntasks. Taught in 10.8 The agent image and chart - Task token: the opaque token encoding queue, task id, lease token, run id, , and , which a completion must present. Taught in 7.4 The task protocol and workers
- Term: a monotonically increasing number; each term has at most one leader. Taught in 7.10 Raft high availability for the durable log (optional)
- Term: Raft’s election epoch; a leader that sees a higher term steps down. Taught in 12.13 A Raft partition (optional)
- Terminal reason: the final status that names which budget stopped the run. Taught in 12.11 A runaway agent
terminationGracePeriodSeconds: how long Kubernetes waits between SIGTERM and SIGKILL when stopping a Pod. Taught in 10.7 Durable and worker images and charts- Three pillars of observability: logs (discrete events), metrics (aggregated numbers), and traces (request flow across services); necessary but not sufficient for debugging problems nobody anticipated. Taught in Chapter 11: Observability
- Tie break: the schedule sequence number that orders timers with equal deadlines. Taught in 7.7 Durable timers
- Tiered retry topics: a chain of delayed retry topics (for example 5 s, 1 min, 10 min), each read by its own consumer, so transient failures retry without stalling live consumption and survivors land in the dead-letter queue. Taught in Chapter 7: Durable Orchestration and Workers
tilt ci: a one-shot run of the graph that exits 0 when every resource is ready, bounded byci_settings(timeout=...). Taught in 10.5 The Tilt dev loop- Time-to-first-token (TTFT): the delay between sending a request and receiving the first generated token. Taught in Chapter 4: Streaming and SSE
- Timer service: the in-memory component that fires armed timers; a cache rebuilt from history, not itself durable. Taught in 7.7 Durable timers
- Torn record: a partially written log record from the instant of a crash, never acknowledged and safely truncated on recovery. Taught in 12.3 The durable server is SIGKILLed in a loop during a corpus build
- Torn tail: an incomplete record at the end of the last segment, left by a crash mid-append; it is truncated at recovery. Taught in 7.1 The append-only event log
- trace: the tree of spans that share one trace id, linked by parent span ids. Taught in 11.1 One trace from gateway to engine
TraceIDRatioBased: a sampler that keeps a trace when a hash of its trace id falls below the ratio, giving every process the same answer. Taught in 11.2 Tracing for the serving path- TRACEPARENT: the W3C header that carries the parent span’s trace id, span id, and sampled flag into the child. Taught in 7.9.4 Failure tests and integration
traceparent: the W3C Trace Context header carrying version, trace id, the sender’s span id, and flags. Taught in 11.1 One trace from gateway to engineTRACEPARENT: the environment variable through which the worker hands the activity’s trace context to a Python child. Taught in 11.6 Observability for the control plane- Traffic mirroring: copying live requests to a new version whose responses are discarded, to test it on real traffic with no user impact. Taught in Chapter 11: Observability
- Transactional checkpointing: durable execution by storing workflow and step state in database transactions, so recovery reads the last committed step and continues; the approach of DBOS, an alternative to event-sourced replay. Taught in Chapter 7: Durable Orchestration and Workers
- Transactional outbox: writing business state and the outgoing event in the same database transaction, with a separate relay publishing from the outbox table, so state and event commit atomically with no dual-write inconsistency. Taught in Chapter 7: Durable Orchestration and Workers
- Trigger: an event the workflow must react to (
started, an activity result, a timer firing, a signal, a cancel request), which causes a workflow task to be scheduled. Taught in 7.2 The workflow service - TTD / TTM: time from injection to detection, and from injection to mitigation. Taught in 12.1 First drill: the engine crashloops
- Twelve-Factor App: a set of principles that make a service orchestratable: config from the environment, stateless processes, logs to stdout, strict build/run separation, and disposability (fast startup, graceful shutdown). Taught in Chapter 10: Kubernetes Workloads and Deployment
- Two-phase commit (2PC): a distributed transaction protocol in which a coordinator asks every participant to prepare and then to commit; it blocks if the coordinator fails, which is why sagas are often preferred across services. Taught in Chapter 1: System Design
uid: the stable, author-chosen identity of a dashboard, used in URLs and provisioning. Taught in 11.5 Dashboards as code for the serving path- umbrella chart: a chart with no templates of its own that pins and configures other charts as dependencies. Taught in 10.4 Helm charts and the observability stack
- USE method: Brendan Gregg’s checklist for finding a bottleneck: for every resource, check utilization, saturation, and errors. Taught in Chapter 7: Durable Orchestration and Workers
- Utilization (): arrival rate divided by total service rate; above 1, queues grow without bound. Taught in 12.2 A decode worker dies mid-stream
- values schema: a
values.schema.jsonthat Helm uses to validate merged values on every lint, template, install, and upgrade. Taught in 10.4 Helm charts and the observability stack - Vector clock: a per-node array of counters attached to events that tells whether one event causally precedes another or the two are concurrent, without synchronized clocks. Taught in Chapter 1: System Design
- Verified snapshot: the last corpus state that passed
ledger verify, used as the base for a rebuild. Taught in 12.9 A data incident - Version header:
X-TL-API-Version, which selects v1 or v2 per request and is echoed on every response. Taught in 12.6 The API v2 migration - Version marker: a
MarkerRecordedevent that records which code path a run took at a change, read byGetVersion. Taught in 7.6 Deterministic replay - Vertical Pod Autoscaler (VPA): a controller that right-sizes a Pod’s resource requests and limits from observed usage; it usually restarts Pods to apply changes and must not share a metric with an HPA. Taught in Chapter 10: Kubernetes Workloads and Deployment
- Vertical scaling: adding capacity by moving to a bigger machine; simple, but it has a ceiling, and it suits databases. Taught in Chapter 1: System Design
- Visibility timeout: the lease length ; a leased task is invisible to other pollers until it expires. Taught in 7.3 The task queue
volumeClaimTemplates: the StatefulSet field that creates one PersistentVolumeClaim per Pod, kept when the Pod is deleted. Taught in 10.7 Durable and worker images and charts
- WAL quota:
[durable].wal_max_bytes(default 2 GiB,walMaxBytesin the chart), the cap above which appends are rejected. Taught in 12.12 The event log disk fills up - WAL quota (
wal_max_bytes): the application-enforced size at which the durable server refuses appends withRESOURCE_EXHAUSTED. Taught in 10.7 Durable and worker images and charts - Whole 200: a status-200 response that is valid JSON or an SSE stream ending in
data: [DONE]\n\n, the only kind that is stored. Taught in 6.1 Response cache: LRU, TTL, singleflight, and tenant-scoped keys - window profile: a set of alert windows, evaluation interval, and
fordurations; prod and a 12x-compressed drill profile. Taught in 11.4 SLOs and multi-window burn-rate alerts - Work directory:
<TL_ARTIFACTS>/activities/<key>/, shared by every attempt of one activity so that a retry resumes. Taught in 7.9.4 Failure tests and integration - Worker pool: stateless processes that long-poll a durable queue, execute tasks, and report results; because all state lives in the queue or engine, workers can crash, deploy, and autoscale freely. Taught in Chapter 7: Durable Orchestration and Workers
- Worker shutdown: a retryable stop caused by the worker going away, as opposed to a non-retryable cancel. Taught in 7.9.4 Failure tests and integration
- Workflow task: a lease on the right to decide a run’s next step, identified by and a lease token. Taught in 7.4 The task protocol and workers
- Write-through / write-back / write-around: write cache and database together / write cache now and database later / write only the database. Taught in Chapter 6: Distributed Data and Caching
- Zero-copy format: a serialization whose bytes are the in-memory layout, readable by offset without parsing. Taught in Chapter 3: RPC and Protocols