Try
↑ ↓ move↵ openesc close

Glossary

227 terms from the lessons and labs, in plain words. Each links to the place you can see it work.

ADPSA to Zone term

A

Ack timeout
How long a broker waits for an acknowledgement before it assumes the consumer failed and hands the message to someone else. Too short and slow consumers cause duplicates. Too long and a crash stalls the message.See: Delivery guarantees lab
Acknowledged write
A write the system has told the client succeeded. What counts as acknowledged depends on the replication mode: it may mean only the leader has it, or that followers do too.See: Replication and lag lesson
Acknowledgement (ack)
A consumer telling the broker that it is finished with a message, so the broker can forget it. When the ack is sent relative to the work decides whether a crash loses the message or repeats it.See: Delivery guarantees lesson
Adaptive client throttling
Each client counts its recent requests and how many the backend accepted, and refuses new requests locally with probability (requests - K x accepts) / (requests + 1). It sheds load before the request leaves the client.See: Load shedding lesson
Adaptive LIFO
A queue that serves oldest first while it is short and newest first once it is long. Under overload the newest request has the most patience left, so it is the one most likely to finish in time.See: Load shedding lab
Admission policy
A rule that decides whether a missed item is allowed into a full cache at all, before any eviction happens. TinyLFU is an admission policy.See: Cache eviction lab
Alert fatigue
The habit of ignoring pages because too many of them are false or minor. An alert that fires often and asks for nothing teaches people to mute the one that matters.See: SLO and burn-rate lab
Anti-entropy
A background process that compares replicas and copies what is missing, so data that is never read still converges. Stores usually compare Merkle trees to find the differences cheaply.See: Quorum lab
Anycast
Announcing the same address from many places, so the network delivers each packet to the nearest one. It steers users without any DNS change, and a route change can move a user to another site mid-connection.See: DNS failover lab
Arrival rate
How many requests reach the system per unit of time. In the load balancing lab it is set relative to total capacity.See: Load balancing lab
Asynchronous network
A network model with no upper bound on message delay or on how long a process may stall. In it, a slow node and a dead node cannot be told apart, which is why failure detection can only ever be a guess.See: Failure detection lesson
Asynchronous replication
The leader acknowledges a write as soon as it has stored it, and sends it to followers in the background. Writes are fast, but followers lag and a leader crash can lose acknowledged writes.See: Replication lab
At-least-once delivery
The broker keeps a message until it is acknowledged and redelivers it if no ack arrives. Nothing is lost, but a message can be processed more than once.See: Delivery guarantees lab
At-most-once delivery
The message is acknowledged before it is processed, so it is handed out once at most. A crash after the ack loses the message, and nothing ever repeats it.See: Delivery guarantees lab
Atomic commit
The promise that a transaction touching several machines either commits on all of them or on none. Two-phase commit is the classic way to keep it.See: Two-phase commit lesson
Authoritative server
The DNS server that holds the real records for a zone. Resolvers ask it when their cache has no fresh answer, so its load rises as TTLs fall.See: DNS failover lab
Auto-commit
A consumer setting that saves the read position on a timer instead of when the work is done. A batch can be marked as read while it is still being processed, so a crash can lose messages.See: Partitioned logs lesson

B

B-tree
A sorted tree of fixed-size pages that stays shallow because each page holds many keys. A lookup reads one page per level, and an insert changes one leaf page, splitting it when it is full.See: B-tree page writes lab
Backpressure (flow control)
A signal from a slow consumer back to its producer that says to send less. It can be an error such as 429, a delay, a full buffer, or credits that the consumer hands out.See: Load shedding lesson
Birthday bound
The number of random codes after which a repeat becomes likely. It grows with the square root of the code space, so it arrives far sooner than the space fills.See: Short ID collisions lab
Bits per key
The memory a Bloom filter spends on each key it holds. More bits per key means a lower false positive rate, with sharply diminishing returns.See: Bloom filters lab
Bloom filter
A small bit array that answers whether a key is possibly in a set. It never says no for a key that is present, and it sometimes says yes for a key that is absent.See: Bloom filters lab
Bounded queue (load shedding)
A waiting line with a fixed size. When it is full the next request is refused at once instead of joining a wait it cannot survive.See: Load shedding lab
Burn rate
How fast the error budget is being spent compared with the rate that would use it up exactly at the end of the SLO window. A burn rate of one spends the whole budget in the window. A burn rate of ten spends it in a tenth of the window.See: SLOs and error budgets lesson
Burst
A short stretch in which messages arrive faster than their long-run average. A queue exists to smooth bursts, and a burst is harmless only if the queue can hold what the consumers cannot yet process.See: Queue buffer lab
Burst tolerance
How many requests a limiter lets through at once before it starts pacing or rejecting. For a token bucket it is the bucket size.See: Rate limiter lab

C

Cache hit and miss
A hit is a request answered from the cache. A miss has to go to the slower backing store, and usually inserts the item into the cache.See: Caching lesson
Cache key
The parts of a request that a cache uses to decide two requests want the same object, usually the host and path and sometimes chosen headers. A key that includes noise, such as a tracking value, splits one object into many entries.See: CDN edge cache lab
Cache stampede
Many requests miss on the same key at once, usually because a hot entry expired, and all of them recompute it. The burst can overload the backing store. Coalescing, leases, stale serving and early refresh prevent it.See: Caching lesson
Capacity
The most work the servers can finish per unit of time. Arrival rate above capacity means queues grow without bound.See: Load balancing lesson
Celebrity account
An account with so many followers that pushing each post to every follower costs more than the system can absorb at once. Hybrid feeds pull its posts at read time instead.See: Feed fan-out lab
Checkpoint
The moment a database writes its changed in-memory pages to the data file, so the log before that point is no longer needed for recovery. Rare checkpoints write fewer pages and make crash recovery longer.See: B-tree page writes lab
Choreography (saga)
A saga with no central coordinator. Each service does its step and publishes an event, and the next service reacts to it. It is loosely coupled, and the flow is hard to see in one place.See: Saga compensation lab
Circuit breaker
A guard in front of a dependency that stops sending requests when too many recent ones failed, then tests the dependency with a few probes before it lets traffic back in. It has three states: closed, open and half-open.See: Retries and breakers lab
Client timeout
How long a caller waits for an answer before it gives up. Work the server finishes after that point is wasted, because nobody is listening.See: Load shedding lab
Closed-loop load generator
A load generator that sends the next request only after the last reply arrives. It measures each reply from its actual send time, so it cannot see the queue that forms while it waits.See: Percentiles lesson
Code space
The number of different short codes a scheme can produce. With 62 symbols and a length of n it is 62 to the power n.See: Short ID collisions lab
Coefficient of variation
Standard deviation divided by the mean. The service-time variance control in the load balancing lab sets this value: zero means every request costs the same.See: Load balancing lab
Commit index
In Raft, the highest log index known to be stored on a majority of nodes. Entries up to it are safe to apply to the state machine. Each node tracks its own, and a leader advances it only for entries from its current term.See: Raft lab
Committed offset
The position in a partition that a consumer group has saved as done. After a crash or a rebalance, a consumer restarts from this offset, so work done since the last commit is read again.See: Partitioned log lab
Compaction
Merging sorted files into larger ones, dropping old versions of keys and deleted entries on the way. It is the background work that keeps an LSM tree readable.See: LSM compaction lab
Compensating action
A step that semantically undoes an earlier step of a saga, such as a refund for a charge. It does not roll anything back. It adds a new change that cancels the old one, and it must be safe to repeat.See: Saga compensation lab
Connection pool
A set of open connections that a client reuses for later requests, so most requests skip the handshake. Too small a pool makes requests queue. Too large a pool wastes server memory.See: Connection pool lab
Consistent hashing
A way to map keys to nodes so that adding or removing a node only moves the keys next to it on a hash ring, instead of reshuffling nearly everything.See: Consistent hashing lesson
Consumer group
A set of consumers that share one stream. Each partition is read by exactly one member of the group at a time, so the group splits the load while each partition stays in order.See: Partitioned logs lesson
Consumer group rebalance
Redistributing partitions among the members of a group after one joins, leaves or fails. In the classic protocol every member stops reading while partitions are dealt out again.See: Partitioned log lab
Consumer lag
How many messages sit in a partition ahead of the consumer. It is the log end offset minus the consumer's position, and a lag that keeps growing means the consumer is slower than the producers.See: Partitioned log lab
Coordinated omission
A measurement error in which the load generator slows down when the system under test slows down, so the requests that would have waited are never sent or never counted. The tail comes out far too low.See: Latency percentiles lab
Coordinator (commit)
The process that runs a distributed commit. It asks the participants to prepare, collects their votes, records the decision and tells everyone. If it crashes at the wrong moment, prepared participants cannot finish alone.See: Two-phase commit lab
Cost-weighted rate limit
A limiter that charges each request a number of tokens in proportion to the work it causes, so an expensive call uses more of the allowance than a cheap one.See: Rate limiter lab
Count-min sketch
A small table of counters, indexed by several hash functions, that estimates how often an item has been seen. It can over-count but never under-count. TinyLFU uses one to track popularity cheaply.See: Cache eviction lab
Credit-based flow control
A consumer tells the producer how many more items it can take, and the producer sends no more than that. The producer cannot overrun the consumer because it needs credit for every send.See: Load shedding lesson
Critical path
The chain of spans in a trace that sets the end-to-end latency. Shortening a span off the path cannot make the request faster, while shortening one on it can.See: Distributed tracing lab
Cursor pagination
Paging through a list by asking for the items after a marker, such as the last item seen, instead of by page number. It stays correct while new items arrive at the front.See: Feed fan-out lab

D

Dead-letter queue
A side queue where a message goes after it has failed too many times. It keeps one bad message from being redelivered forever, and it keeps the message around for a person to inspect.See: Delivery guarantees lesson
Deadline propagation
Passing the time that is left, not a fresh timeout, to each service a request touches, so work stops soon after the original caller gives up.See: Retries and circuit breakers lesson
Deadline-aware drop
A server policy that skips a queued request when it can no longer finish before the client gives up. Dropping it costs almost nothing, and the worker moves on to a request that can still succeed.See: Load shedding lab
Deduplication store
A table of idempotency keys that have already been applied. The consumer checks it before acting and skips the effect when the key is present. It only works if the key is recorded atomically with the effect.See: Delivery guarantees lab
Delivery receipt
A message from the recipient's device that tells the server the message arrived. The server can then show the sender a delivered mark and stop retrying.See: Chat delivery lab
Dirty page
A page in memory that has changed since it was last written to disk. It is the unit a checkpoint writes out.See: B-trees lesson
DNS TTL
The number of seconds a DNS record says it may be cached. A short value makes a change reach users sooner and sends more queries to the authoritative server.See: DNS failover lab
Dual write
Updating two systems, such as a database and a message broker, with two separate calls. A crash between the calls leaves one updated and the other not, and no transaction spans both.See: Idempotency keys and the outbox lab

E

Edge cache
A cache run close to users, in front of an origin. A hit is answered at the edge. A miss goes on to the origin or to a shield and fills the cache.See: CDN edge cache lab
Effectively-once processing
What people usually mean by "exactly once": a message may be delivered several times, but its effect happens once. It is built end to end from at-least-once delivery plus idempotent processing or a transaction.See: Delivery guarantees lesson
Election restriction
A Raft node grants its vote only to a candidate whose log is at least as up to date as its own, comparing the last entry’s term and then its index. This keeps a node with a stale log from winning and losing committed entries.See: Raft lesson
Election timeout
How long a Raft follower waits without hearing from a leader before it runs for election. It is drawn at random from a range so that two nodes rarely time out together.See: Raft lab
Error budget
The amount of failure an SLO allows over its window: one minus the target, times the requests or time in the window. It is spent by errors and can be spent on risk, such as releases.See: SLOs and error budgets lesson
Eviction
Removing an item from a full cache to make room for another. The policy decides which item leaves.See: Caching lesson
Exponential backoff
Waiting longer after each failed attempt, usually doubling the wait up to a cap. It spreads retries over time but, on its own, makes every client wait the same amount.See: Retries and breakers lab

F

Failover
Replacing a failed leader by promoting a follower. Writes the new leader never received are lost, so what failover costs depends on how the old leader replicated.See: Replication lab
Failover delay
The time between an endpoint failing and traffic leaving it. With DNS it is the detection time plus the time for cached answers to expire, and TTL-ignoring resolvers lengthen it.See: DNS failover lab
Failure detector
A component that watches heartbeats and says whether another node is up. It cannot be perfectly accurate and perfectly fast at once. Chandra and Toueg classified detectors by how wrong they may be and showed consensus needs only a weak one.See: Failure detection lesson
False positive (filter)
A Bloom filter answer of "maybe present" for a key that was never added. It costs one wasted lookup and never causes a wrong result.See: Indexes and Bloom filters lesson
False suspicion
A failure detector declaring a node dead while it is alive, usually because of a slow network or a pause. Shorter timeouts raise more of them.See: Failure detection lab
Fan-out (requests)
One incoming request causing many calls to other services. The user waits for the slowest parallel call, so the chance of meeting a slow one grows with the number of calls.See: Distributed tracing lesson
Feed inbox
A precomputed list of post ids for one reader. Push feeds fill it when a post is made, so reading it takes a single lookup.See: Feed fan-out lab
Fencing token
A number the lock service increases with every grant. The client sends it with each write, and storage rejects any write whose token is lower than one it has already seen. It turns a stale holder’s write into a rejection instead of a corruption.See: Locks, leases and fencing lab
FIFO
First in, first out. The oldest inserted item is evicted first, no matter how often it has been used since.See: Cache eviction lab
Fixed window counter
A limiter that counts requests in consecutive time windows and resets the count at each boundary. It is cheap, but a burst split across a boundary can get nearly twice the limit.See: Rate limiter lab
Fixed-bucket histogram
A latency histogram whose bucket boundaries are chosen in advance, as most metrics systems do. Percentiles are estimated from bucket counts, so their error depends on how wide the bucket around the percentile is.See: Latency percentiles lab
FLP impossibility
The result by Fischer, Lynch and Paterson that no deterministic consensus protocol can guarantee termination in an asynchronous system where even one process may crash. Practical protocols get around it with timeouts and randomness, giving up a liveness guarantee rather than safety.See: Raft lesson
Full jitter
Choosing each retry delay at random between zero and the exponential backoff ceiling, so clients that failed together do not retry together.See: Retries and breakers lab
Full-queue policy
What a bounded queue does with a message that arrives when there is no room: block the producer, drop the newest message, or drop the oldest. Each one decides who pays for the overload.See: Queue buffer lab

G

Gateway server
A server that holds long-lived client connections and forwards messages between them and the services behind it. Its job is to keep many idle connections cheap.See: Chat delivery lab
Goodput
Work that finishes and is still wanted, such as requests answered before the client timed out. Throughput counts everything the server did. Goodput counts only what helped.See: Load shedding lab
Gossip protocol
A way to spread information by having each node tell a few random peers every round. News reaches the whole cluster in about log n rounds, with constant work per node, but nodes can hold different views for a while.See: Failure detection lesson

H

Half-open state
The breaker state after the cool-down. A few probe requests are allowed through. If they succeed the breaker closes, and if one fails it opens again.See: Retries and breakers lab
Handshake cost
The round trips a new connection needs before it can carry a request. TCP with TLS 1.3 needs two. QUIC combines the transport and the encryption and needs one.See: Connection pool lab
Hash mod N
Assigning a key to node number hash(key) mod N. Simple and even, but changing N changes the remainder for most keys.See: Consistent hashing lab
Hash partitioning
Choosing a key's partition by hashing the key, so neighbouring keys land on unrelated partitions. It evens out load from sequential keys and makes range scans touch every partition.See: Partitioning lab
Hash ring
The circular space of hash values used by consistent hashing. Nodes and keys are both hashed onto it, and a key belongs to the first node clockwise from it.See: Consistent hashing lab
Head-based sampling
Deciding at the start of a request whether to record its trace, usually by a random draw. It is cheap and needs no buffering, but the decision is made before anyone knows whether the request will be slow or fail.See: Distributed tracing lab
Head-of-line blocking
One slow message at the front of the line, or occupying the consumers, holds up every message behind it. Separate queues for slow and fast work limit the damage.See: Queues as buffers lesson
Heartbeat
A small periodic message that says only "I am still here". Leaders send them to hold their position, and failure detectors watch for them to stop.See: Failure detection lab
Hedged request
Sending the same request to a second replica when the first has not answered after a short delay, and using whichever answer comes first. It trims the latency tail for a few percent of extra load.See: Load balancing lesson
Hinted handoff
When a replica is unreachable, a stand-in node takes the write with a note saying who it was meant for, and hands it over when that replica returns.See: Quorum lab
Hot key
A key that receives far more requests than most others. Hot keys are what make a small cache worthwhile.See: Caching lesson
Hot key (partition skew)
One key that carries a large share of the traffic. All its messages go to one partition, so that partition falls behind while others idle, and adding consumers does not help.See: Partitioned log lab
Hot partition
A partition that takes far more requests than the others. The cluster is limited by that one machine, however much capacity the rest have.See: Partitioning lab
HTTP/2 multiplexing
Sending many requests and responses at once as separate streams over a single connection. It removes the one-request-at-a-time queue of HTTP/1.1 on each connection.See: Connection pool lab
Hybrid feed
A feed that pushes posts from ordinary accounts into follower inboxes and pulls posts from celebrity accounts when a feed is read. It bounds both write cost and read cost.See: Feed fan-out lab

I

Idempotency key
An identifier sent with a request so that repeating it has the same effect as doing it once. The receiver remembers keys it has applied and ignores a repeat.See: Delivery guarantees lab
Imbalance (max over mean)
The load on the busiest node divided by the average load. One means perfectly even.See: Consistent hashing lab
In-doubt transaction
A transaction whose participant has voted yes and not yet heard the decision. It cannot commit or abort alone, so it keeps its locks until the coordinator or another participant says what happened.See: Two-phase commit lab
Incarnation number
A counter a node owns and raises to refute a rumour that it is dead. A message that says the node is alive with a higher incarnation overrides a suspicion carrying a lower one, so a wrongly suspected node can correct the record.See: Failure detection lesson

J

Joint consensus
Raft’s way of changing cluster membership. For a while a decision needs a majority of the old configuration and a majority of the new one, counted separately, so the two sets can never elect different leaders.See: Raft lesson

K

Key expiry
Forgetting an idempotency key after a set time so the table stays small. A retry that arrives after the key is gone is treated as a new request, so the lifetime must outlast the longest retry.See: Idempotency keys and the outbox lab

L

Latency percentile
The value below which a given share of requests fall. The p99 is the latency that 99 percent of requests beat and one percent exceed. Percentiles of different groups cannot be averaged to give the percentile of the whole.See: Percentiles lesson
Latency-based routing
Answering a DNS query with the endpoint that has had the lowest measured delay for the resolver's region. It sees the resolver, not the user, so it can pick wrongly for users far from their resolver.See: DNS failover lab
Leader and follower replication
A scheme where one replica, the leader, accepts all writes and sends them in order to the others, the followers, which can serve reads.See: Replication and lag lesson
Leaky bucket
A limiter that puts requests in a queue and releases them at a fixed rate. A burst is delayed instead of rejected, and requests are rejected only when the queue is full.See: Rate limiter lab
Lease
A lock that expires on its own after a set time, so a crashed holder does not block everyone forever. The price is that a holder who is merely slow can lose the lock without knowing it.See: Locks, leases and fencing lesson
Least connections
A load balancing strategy that sends each request to the server with the fewest requests in flight. It needs a fresh count from every server.See: Load balancing lab
Leveled compaction
A compaction policy that keeps one sorted run per level, with each level a fixed multiple bigger than the one above. Reads and space stay cheap, and each entry is rewritten many times.See: LSM compaction lab
LFU
Least frequently used. Evicts the item with the lowest hit count. Strong when popularity is stable, but old favourites can sit in the cache after they stop being popular.See: Cache eviction lab
Little's law
In a stable system, the average number of items inside equals the average arrival rate times the average time each item spends inside. It holds whatever the arrival pattern or service order is.See: Queue buffer lab
Load shedding
Refusing or dropping some requests on purpose when demand is higher than capacity, so that the ones accepted still finish in time.See: Load shedding lesson
Lock-delay
A pause a lock service imposes before granting a lock that was freed because its holder failed or became unreachable. It gives delayed requests from the old holder time to drain at servers that cannot check tokens, at the cost of availability.See: Locks, leases and fencing lesson
Log matching
The Raft property that if two logs hold an entry with the same index and term, the logs are identical up to that index. The leader checks it on every append by sending the previous entry’s index and term.See: Raft lab
Log offset
The position of a message inside one partition, counted from the start. Offsets give each message a stable address, so a consumer can resume, skip ahead or go back to read again.See: Partitioned logs lesson
Logical log
A replication log that records the changed rows and their new values instead of SQL text or disk pages. It does not depend on the storage engine's layout, so followers can run another version and other systems can read the same stream.See: Replication lab
LRU
Least recently used. Evicts the item that has gone unused the longest. It adapts quickly to change, but one scan over many cold keys can flush the cache.See: Cache eviction lab
LSM tree
A log-structured merge tree. Writes go to a sorted table in memory, which is flushed to immutable sorted files that are merged in the background.See: LSM trees lesson

M

Majority quorum
More than half of the nodes. Any two majorities share at least one node, which is what lets a new leader learn everything an old one committed.See: Raft lesson
Memtable
The in-memory sorted table that takes new writes in an LSM tree. When it is full it is written out as one sorted file.See: LSM trees lesson
Merkle tree
A tree of hashes in which each node hashes its children. Two replicas with equal root hashes hold the same data, and when they differ, comparing children leads to the differing slice in a few steps.See: Quorum lab
Message broker
A service that sits between producers and consumers, stores messages and hands them out. It lets the two sides run at different speeds and fail independently.See: Queues as buffers lesson
Metastable failure
A failure that keeps going after its trigger has gone. A retry storm is one: the extra load from retries holds the system in overload without any fault left to blame.See: Retries and breakers lab
Monotonic reads
A session guarantee that once a client has seen a value, it never later sees an older one. Reading from different followers can break it, since they lag by different amounts.See: Replication lab
Multi-window, multi-burn-rate alert
An alert that fires only when the budget is burning fast over a long window and also over a short one, with several pairs of windows and burn rates for different urgencies. The long window filters noise and the short one lets the alert reset quickly.See: SLO and burn-rate lab

N

Non-voting member
A Raft server that receives log entries from the leader but is not counted toward any majority. New servers join this way until they have caught up, so an empty newcomer cannot stall commits.See: Raft lesson

O

Offline inbox
Messages stored for a user who has no open connection. The client asks for everything after its last sequence number when it reconnects.See: Chat delivery lab
Open-loop load generator
A load generator that sends requests on a fixed schedule whatever the replies do, and measures each reply from the time it was meant to be sent. It sees the queueing a slow reply causes.See: Percentiles lesson
Orchestration (saga)
A saga run by one coordinator that tells each service what to do and records where the saga is. It costs extra messages and makes the flow easy to see, test and resume.See: Saga compensation lab
Origin offload
The share of requests that never reach the origin because a cache answered them. It rises with hit ratio, and a shield can raise it further.See: CDN edge cache lab
Origin shield
A shared cache layer between the edge caches and the origin. Many edges that miss on the same object cause one origin request instead of many.See: CDN edge cache lab
Outbox relay
The process that reads unsent rows from the outbox table, publishes them and marks them sent. If it crashes between the publish and the mark, it publishes again, so delivery is at least once.See: Idempotency keys and the outbox lab

P

Page split
What a B-tree does when an insert does not fit in a full page. It moves about half the keys to a new page and adds a separator to the parent, which can split in turn.See: B-tree page writes lab
Participant (commit)
One of the machines that holds part of a distributed transaction. It votes on whether it can commit, and after a yes vote it must wait for the coordinator's decision.See: Two-phase commit lab
Partition (shard)
One piece of a dataset that has been cut up by key. Each partition lives on its own machine or group of machines, so the pieces can be served in parallel.See: Partitioning lesson
Partition split
Dividing one range partition into two at a chosen key, so that the halves can live on different machines. Splitting at the median of load is how a hot range gets relief.See: Partitioning lab
Percentile latency (p50, p95, p99)
The latency below which that share of requests fall. p99 is the value that one request in a hundred exceeds, so it describes the slow tail rather than the typical case.See: Load balancing lesson
Phi accrual failure detector
A detector that outputs a suspicion level instead of a yes or no. It fits the recent heartbeat intervals and reports how unlikely the current silence is on a log scale, so the threshold adapts to the network it sees.See: Failure detection lab
Poison message
A message that makes its consumer fail every time. Under at-least-once delivery it comes back again and again unless it is limited by a retry count or moved to a dead-letter queue.See: Delivery guarantees lesson
Power of two choices
Pick two servers at random and send the request to the one with the shorter queue. A tiny amount of information gives most of the benefit of checking every server.See: Load balancing lab
Prepare phase
The first round of two-phase commit. Each participant makes its changes durable and holds its locks, then votes yes if it can commit and no if it cannot.See: Two-phase commit lab
Presence
Whether a user is online right now. It is usually a heartbeat with an expiry, so a user who vanishes without saying goodbye is marked offline after a short wait.See: Chat delivery lab
Producer backpressure
A bounded queue that is full makes the producer wait instead of losing data. The delay moves from the queue to the sender, which is safe only if the sender can afford to wait.See: Queue buffer lab
Pull feed (fan-out on read)
Building a feed when it is read, by fetching recent posts from every account the reader follows. Writes are cheap and each read does the work.See: Feed fan-out lab
Purge
Removing an object from caches before its TTL ends, so the next request fetches the new version. It gives freshness on demand and depends on the purge reaching every cache.See: CDN edge cache lab
Push feed (fan-out on write)
Copying each new post into the inbox of every follower when it is made. Reads are cheap and a post by a popular account costs one write per follower.See: Feed fan-out lab

Q

Queue age
How long the oldest message in a queue has been waiting. It is the delay a caller actually sees, and it stays meaningful when consumer speed changes, which depth does not.See: Queues as buffers lesson
Queue depth
The number of requests waiting at or being served by one server. The lab draws it as a bar per server.See: Load balancing lab

R

Raft term
A number that counts elections. Each term has at most one leader. A node that sees a higher term in any message adopts it and becomes a follower, which is how an old leader learns it has been replaced.See: Raft lab
Range partitioning
Giving each partition a contiguous slice of the key order. Range scans stay on one or two partitions, but sequential or popular keys can pile onto a single one.See: Partitioning lab
Range scan
A read of all keys between two bounds. Its cost is the number of partitions it has to ask, which is why the partitioning scheme matters.See: Partitioning lab
Rate limiting
Capping how many requests a client, key or service may make in a period of time. It protects a service from one caller and shares capacity between callers.See: Rate limiting lesson
Read amplification
How many places a read must look for each result. In an LSM tree it is the number of sorted files a lookup may check.See: LSM compaction lab
Read quorum and write quorum
In a leaderless store with N replicas, a write waits for W of them and a read waits for R. If R plus W is greater than N, every read set shares a replica with every acknowledged write set.See: Quorum lab
Read receipt
A message that says the recipient has opened a conversation up to some point. One receipt carrying a sequence number covers every earlier message.See: Chat delivery lab
Read repair
When a read finds replicas that return different versions, the reader writes the newest version back to the ones that were behind. It fixes data that is read often.See: Quorum lab
Read-your-writes
A session guarantee that a client always sees its own earlier writes. A read routed to a follower that has not applied the write yet breaks it.See: Replication lab
Redelivery
Handing a message out again because the first attempt was never acknowledged. It is the reason at-least-once delivery can repeat a message.See: Delivery guarantees lab
Redirect status (301 and 302)
The HTTP codes a short link service answers with. A 301 says the move is permanent and lets browsers remember it. A 302 says it is temporary, so every click comes back to the server.See: Short ID collisions lab
Redrive
Moving messages from a dead-letter queue back to the queue they came from, once the bug is fixed or the dependency is healthy. Do it at a controlled rate so it does not create a second spike.See: Delivery guarantees lesson
Rendezvous hashing
Score every node with hash(key, node) and give the key to the highest scorer. Removing a node moves only its keys, and no ring is needed. A lookup costs one hash per node.See: Consistent hashing lesson
Replay
Reading a log again from an earlier offset. Because a log keeps messages after they are read, a new consumer, a fixed bug or a rebuilt table can be fed the history again, within the retention window.See: Partitioned log lab
Replication lag
How far a follower is behind the leader, as a number of writes or as time. It grows with network delay and write rate.See: Replication lab
Request criticality
A label set at the edge that says how much a request matters and travels with it through every call. Under overload the lowest class is shed first.See: Load shedding lesson
Resolver (DNS)
The server that looks up names on behalf of clients and caches the answers. Many users share one resolver, so its cached answer decides where all of them go.See: DNS failover lab
Retention
How long, or how much, a log keeps. Messages older than the limit are deleted whether or not anyone read them, so a consumer that falls too far behind loses data.See: Partitioned logs lesson
Retry amplification
The number of attempts that reach a dependency for each new request. Without limits it can be as high as the attempt limit, exactly when the dependency can least afford it.See: Retries and breakers lab
Retry budget
A cap on retries as a share of recent requests, for example a tenth. A retry is sent only if the budget has room, so retries cannot multiply the load.See: Retries and breakers lab
Retry storm
Retries pile onto a struggling dependency, making it slower, which causes more failures and more retries. The load can stay high long after the original problem ends.See: Retries and breakers lab
Retry-After
An HTTP response header that tells a client how long to wait before trying again. It is sent with 429 and 503 responses, and turns a refusal into a schedule.See: Load shedding lesson
Round robin
Send request after request to the next server in a fixed order. Even by count, blind to how busy each server is.See: Load balancing lab

S

Saga
A long transaction split into local transactions, each with a compensating action. If a step fails, the compensations of the finished steps run in reverse order. A saga gives up isolation to avoid long locks.See: Saga compensation lab
Saga isolation anomaly
A read or write that sees the middle of a saga. A reader may see work a saga later compensates, and two sagas may interleave on one record. Sagas give atomicity in the end, not isolation.See: Saga compensation lab
Scatter and gather
Sending a query to every partition and merging the answers. Its latency is set by the slowest partition, and it costs one request per partition however few rows match.See: Partitioning lab
Secondary index
An index on a column other than the partition key. A local index covers one partition's rows, so a query must ask every partition. A global index is itself partitioned by the indexed value, so a query asks few partitions but a write touches more.See: Partitioning lab
Semantic lock
A flag in the data, such as a pending state, set by one step of a saga and cleared by its last step or its compensation. Other code reads the flag and knows the record may change.See: Saga compensation lab
Semi-synchronous replication
The leader acknowledges a write after one follower has it. The write exists on two machines before the client hears about it, at the cost of one round trip.See: Replication lab
Sequence number (per conversation)
A counter that the server assigns to each message in one conversation. Clients use it to put messages in order, to drop duplicates and to ask for what they missed.See: Chat delivery lab
Sequencer
In Chubby, an opaque string naming a lock, the mode it was acquired in and its generation number. The holder passes it to servers, which check it is still valid. It plays the role of a fencing token.See: Locks, leases and fencing lesson
Service level indicator (SLI)
A measurement of how well a service is doing, usually a ratio of good events to all events, such as the share of requests answered successfully within 300 ms.See: SLOs and error budgets lesson
Service level objective (SLO)
A target for an SLI over a window, for example 99.9 percent of requests good over 30 days. It is a goal the team sets for itself, and it is usually stricter than any promise made to customers.See: SLOs and error budgets lesson
Service time
How long a server takes to process one request once it starts. Distinct from latency, which also includes the time spent waiting in the queue.See: Load balancing lesson
Session lease
One lease that covers a client’s whole relationship with a lock service. KeepAlive calls renew it, and when it lapses every lock and handle the client holds is released together.See: Locks, leases and fencing lesson
Shedding hysteresis
Using a higher threshold to start shedding than to stop it, so a system does not switch shedding on and off every few seconds around one value.See: Load shedding lesson
Sliding window counter
A limiter that keeps the count of the current and the previous window and weighs the previous one by how much of it still overlaps. It uses little memory and is close to exact.See: Rate limiter lab
Sliding window log
A limiter that stores a timestamp for every admitted request and counts those inside the last window. It is exact, but its memory grows with the limit.See: Rate limiter lab
Sloppy quorum
A quorum that may be filled by stand-in nodes outside the usual replica set when some of the usual ones are down. Writes keep succeeding, but reads of the usual replicas can miss them until hints are handed back.See: Quorum lab
SLRU
Segmented LRU. Items start in a probationary segment and move to a protected segment on a second hit, so one-off keys cannot push out proven ones.See: Cache eviction lab
Space amplification
Bytes stored on disk divided by bytes of live data. Old versions that compaction has not yet removed are the usual cause.See: LSM compaction lab
Span
One timed operation inside a trace, such as a call to a service or a database query. It records a start, an end, its parent span, and tags.See: Distributed tracing lesson
A reference from one span to another span that is causally related but is not its parent, possibly in a different trace. A consumer that processes a batch of messages uses one link per message, because a span can have only one parent.See: Distributed tracing lesson
Split vote
An election in which no candidate gathers a majority because several ran for the same term and the votes were divided. Everyone times out and tries again with new random timeouts.See: Raft lab
SSTable
A sorted string table: an immutable file of key-value pairs in key order, with an index to find a key quickly. LSM trees write one for each flush and each merge.See: LSM trees lesson
Stale read
A read that returns a value older than one the system had already acknowledged. In these labs a read is stale if it is older than the newest acknowledged write when the read began.See: Replication and lag lesson
Stale-while-revalidate
A cache rule that lets an expired copy be served at once, for a short window, while one request refreshes it in the background. Users avoid the wait. They may see a slightly old copy.See: CDN edge cache lab
State machine safety
The guarantee that if any node has applied a log entry at a given index, no other node will ever apply a different entry at that index. It is what makes a replicated log a single consistent history.See: Raft lesson
Stop-the-world pause
A period in which a process makes no progress at all, from garbage collection, swapping, a frozen virtual machine or a stalled disk. To the rest of the system it looks like a crash until it ends.See: Locks, leases and fencing lesson
Synchronous replication
The leader acknowledges a write only after every follower has it. Nothing acknowledged is lost when the leader fails, but one slow or dead follower slows or blocks every write.See: Replication lab

T

Tail latency
The slow end of the latency distribution. At scale, a user request that fans out to many servers is slowed by the slowest of them.See: Load balancing lesson
Tail-based sampling
Deciding whether to keep a trace after it has finished, so the rule can use its latency or errors. It keeps the interesting traces, but every span has to be buffered until the decision.See: Distributed tracing lab
TCP head-of-line blocking
On TCP, data must reach the application in order, so one lost packet holds back everything behind it. With many streams on one connection, a loss in one stream stalls all of them.See: Connection pool lab
Three-phase commit
A variant of two-phase commit with a pre-commit round that removes blocking when machines crash but the network stays sound. It is rarely used because it can still go wrong when the network splits and it costs another round.See: Two-phase commit lesson
Throughput
How many requests the system finishes per unit of time. It follows the arrival rate until capacity is reached, then flattens.See: Load balancing lab
Tiered compaction
A compaction policy that lets several runs of similar size pile up, then merges them all at once. Writes are cheap, and reads and space pay for the extra runs.See: LSM compaction lab
Time to live (TTL)
How long a cache entry may be served before it expires. It caps how stale data can get, and a short TTL lowers the hit rate.See: Caching lesson
Token bucket
A limiter with a bucket that refills at a steady rate up to a maximum. Each request takes a token and is rejected when the bucket is empty, so a full bucket allows a burst and the refill rate sets the long-run rate.See: Rate limiter lab
Tombstone
A marker written in place of a deleted value so that replicas that missed the delete can learn about it. It is dropped after a grace period, and a replica that was down longer can bring the deleted value back.See: Quorum lab
Too Many Requests (429)
The HTTP status code a server returns when a client has sent too many requests. It may carry a Retry-After header saying when to come back.See: Load shedding lesson
Topic partition
One ordered, append-only slice of a topic. Messages with the same key go to the same partition, which is why order holds for a key but not across keys.See: Partitioned logs lesson
Trace
The record of everything one request caused across services: a tree of spans that share one trace identifier. It shows where the time went.See: Distributed tracing lesson
Trace context propagation
Passing the trace identifier and parent span identifier along with every call, usually in a request header, so the spans from different services can be joined into one trace.See: Distributed tracing lesson
Transactional outbox
A pattern in which a service writes its event into a table in the same database transaction as its data, and a separate relay publishes the rows to the broker. It gives at-least-once publishing without a gap between the two writes.See: Delivery guarantees lesson
Two-phase commit
A protocol for atomic commit across machines. A coordinator asks every participant to prepare, then tells all of them to commit if every vote was yes, or to abort if any was no.See: Two-phase commit lab

U

Utilization
The share of capacity in use: arrival rate divided by capacity. Queues stay short at low utilization and stretch sharply as it approaches one.See: Load balancing lesson

V

Version vector
A counter per node attached to a value. If one vector is at least as large in every position it replaces the other, and if neither is the writes were concurrent and both versions are kept as siblings.See: Quorum lab
Virtual node
One of many points a physical node places on the hash ring. More virtual nodes make arc lengths, and so loads, more even, and let a node leave by spreading its keys over many neighbours.See: Consistent hashing lab

W

Weighted routing
Answering DNS queries with different endpoints in set proportions. The choice is made once per cached answer, not once per request, so the observed split is coarse.See: DNS failover lab
Workload shift
A change in which keys are popular. Policies that remember popularity for too long handle it badly.See: Cache eviction lab
Write amplification
Bytes the storage engine writes for each byte the application writes. Page rewrites, log records and compaction all add to it.See: B-tree page writes lab
Write fan-out
The number of writes one post causes. It equals the follower count in a push feed and one in a pull feed.See: Feed fan-out lab
Write-ahead log
A sequential file to which a database appends each change before applying it to its pages, so it can recover after a crash. Streaming it to followers is the physical form of replication.See: Replication lab

Z

Zipf distribution
A skewed distribution in which the key ranked k is requested in proportion to one over k to a power. A small set of keys takes most requests. The skew parameter is that power.See: Cache eviction lab

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms