Distributed SystemsVol. 5 · Part V
0 / 0

Shelves / Distributed Systems

DS·65

Foundations of Distributed Systems

Why distributed systems are hard, from first principles: partial failure and the impossibility of knowing what happened, network latency and its distribution, the fallacies of distributed computing, clock uncertainty, retries and duplication, ordering, concurrency without shared memory, partitioning, and the consistency question. Covers system models (synchronous, asynchronous, partially synchronous; crash-stop, crash-recovery, Byzantine), the two generals problem, FLP, and how languages and runtimes (Erlang/OTP, Go, Java, Rust) expose distribution.

30 topics · ~21 min read · 29-question quiz
Updated Suggest a correction

Start here: the network is not a function call

Eight things that aren't true

In the 1990s, engineers at Sun Microsystems listed the fallacies of distributed computing, assumptions that newcomers make and systems then punish:

  1. The network is reliable.
  2. Latency is zero.
  3. Bandwidth is infinite.
  4. The network is secure.
  5. Topology doesn't change.
  6. There is one administrator.
  7. Transport cost is zero.
  8. The network is homogeneous.

The first two cause most bugs. Code that calls another service looks exactly like code that calls a local function, which is precisely why it's dangerous.

How far away is "over there"?

Text
a function call 0.04 µs
HTTP request on localhost: median 681 µs, p99 1505 µs
through a proxy adding 1±1 ms (like another availability zone): median 2.11 ms, p99 3.41 ms

A local function call took 40 nanoseconds; the same question asked over HTTP on the same machine took 17,000 times longer, and that's before any real network. Between availability zones add about a millisecond, across a continent tens of milliseconds, across the world over a hundred, bounded by the speed of light in fibre (about 200 km per millisecond). So the first design rule is to make fewer, larger remote calls: batch, embed related data, cache.

The second number in each line matters as much as the first. Tail latency (p99: the slowest 1%) was more than double the median, and it gets worse when one request depends on many:

Text
a page that waits for   1 backend call:  p50   682 µs, p99  1521 µs | pages hitting at least one backend p99:  1%
a page that waits for  10 backend calls: p50   948 µs, p99  2713 µs | pages hitting at least one backend p99: 10%
a page that waits for 100 backend calls: p50  1700 µs, p99 71156 µs | pages hitting at least one backend p99: 63%

A page that waits for 100 parallel calls is only as fast as the slowest one, so 63% of pages hit at least one backend's worst-1% response, and one rare 70 ms stall in the measured data became the page's p99. That's why large systems obsess over p99 and p99.9 of every backend, and use techniques like hedged requests (send a second copy if the first is slow; the lab cut p99 from 203 ms to 14 ms).

Partial failure

In one process, if something crashes, everything stops. In a distributed system, a service can be fine while its database is slow, one replica is pausing for garbage collection, or a network link between two zones is dropping packets. The system is neither up nor down but partially failed, and your code must decide what to do with each kind of trouble: retry, wait, use another replica, degrade, or fail. The key tools all appeared in Volume 3 chapter 52: timeouts on every call, retries only for safe operations, circuit breakers and bulkheads.

Order isn't guaranteed

Text
10,000 numbered messages sent in order, round-robin over 4 connections:
received 10,000; 7,476 arrived after a higher-numbered message; first 12 received: [0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44]

Within one TCP connection, bytes arrive in order. Across connections, threads, retries, partitions of a queue or replicas, nothing orders messages for you: here three-quarters of messages arrived after a later one. If order matters ("order placed" must be processed before "order cancelled"), you must design for it: send related messages through one ordered channel (one Kafka partition per order id, chapter 67), include sequence numbers or versions and let receivers reject stale updates, or make operations commutative so order doesn't matter (chapter 71's CRDTs).

Splitting data: partitioning and copies

Distributed systems hold data in two complementary ways. Partitioning (sharding) splits data so each node holds a part: it scales capacity, and a query needing all the data must ask every node. Replication keeps copies of the same data on several nodes: it survives failures and spreads reads, and the copies can disagree for a while. Chapters 69 to 72 are about what clients may see while copies disagree (consistency models, CAP) and how nodes agree despite failures (replication and consensus).

How deep to go in distributed foundations

Volume 17 defines six mastery levels. For this chapter they look like this; the chapter aims at L3 everywhere, and its lab at L4.

Level What you can do
L1 Explain partial failure, latency, timeouts, partitioning and replication
L2 Write remote calls with timeouts, safe retries and batching; reason about p99
L3 Explain system models (synchronous, asynchronous, partial synchrony), failure models, tail amplification and ordering guarantees
L4 Diagnose tail latency, hidden fan-out, reordering and partial failures from traces and metrics
L5 Design service boundaries and data placement around latency and failure
L6 Set organisation-wide standards for timeouts, retries and latency budgets

What makes a system distributed

Definitions

A distributed system is a set of independent computers (nodes) that communicate by exchanging messages over a network and cooperate to appear, to their users, as one coherent system. Leslie Lamport's tongue-in-cheek definition is still the most useful: "A distributed system is one in which the failure of a computer you didn't even know existed can render your own computer unusable."

We distribute systems because we must:

  • Scale: more data or load than one machine can handle (Vol. 4 ch. 61).
  • Availability: survive machine, rack, zone or region failures.
  • Latency: put data and computation near users.
  • Organisation: separate services owned by separate teams (microservices).
  • Integration: talk to systems we don't control (payment providers, partners).

Every one of those benefits is paid for with the problems in this chapter. The rule the roadmap states is the foundation of the whole volume:

A distributed system must be designed around the assumption that components can fail independently.

The fallacies of distributed computing

Peter Deutsch and colleagues at Sun (1994–97) listed assumptions newcomers make that are all false:

Fallacy Reality
1. The network is reliable Packets are dropped, connections reset, switches fail, and cables are cut
2. Latency is zero Calls take from microseconds (same host) to hundreds of milliseconds (intercontinental), with long tails
3. Bandwidth is infinite Large payloads saturate links, and cross-zone and cross-region traffic costs money
4. The network is secure Traffic can be observed or tampered with (mTLS, zero trust, Part X)
5. Topology doesn't change Pods reschedule, IPs change, autoscaling adds and removes nodes
6. There is one administrator Many teams and providers, each with their own changes and outages
7. Transport cost is zero Serialisation CPU, egress fees, TLS handshakes
8. The network is homogeneous Mixed versions, protocols, MTUs and middleboxes

Each fallacy maps to a design response in later chapters: retries and idempotency (1), timeouts and async (2), compression and pagination (3), TLS (4), service discovery (5), contracts and versioning (6, 8), and batching (7).

Partial failure

The defining problem

On a single computer, failures are mostly total: the process or machine crashes, and everything stops together. In a distributed system, failures are partial. Some nodes work, some don't, and some are slow. Worse, you often can't tell which.

Send a request and get no reply. What happened?

client server ✕ 1 request lost 2 crash before processing ✕ 3 processed ✓, crash before reply ✕ 4 GC pause / overload… reply later 5 processed ✓, reply lost ✕ client sees the same thing in all five: a timeout
Why a missing response is ambiguous. The request may have been lost, the server may have crashed before or after processing, the server may be slow, or the response may have been lost; from the client's view all look identical: a timeout.

This ambiguity drives most of distributed systems design:

  • Did it happen? Cases 3 and 5 performed the operation; cases 1 and 2 didn't. Retrying is safe only if the operation is idempotent (chapter 74).
  • Is the node dead? Case 4 is alive but slow. Declaring it dead and failing over can create two leaders (split brain, chapter 71). Not declaring it dead stalls the system. Failure detection is fundamentally unreliable in asynchronous networks (chapter 77).
  • Timeouts are guesses. Too short, and you get false failure detection and retry storms. Too long, and you get slow recovery and resources held. Base them on measured latency distributions (Vol. 3 ch. 52).

Failure models

What kinds of failure does a design tolerate? This is formalised as a failure model:

Model Nodes may… Typical assumption in
Crash-stop (fail-stop) Stop and never return Simple textbook algorithms
Crash-recovery Crash, then restart with durable state (losing in-memory state) Real databases and consensus systems (Raft persists its log and term)
Omission Fail to send or receive some messages Lossy networks
Byzantine Behave arbitrarily: lie, send conflicting messages, act maliciously Blockchains, aerospace, adversarial multi-party systems. Tolerating f Byzantine nodes needs 3f + 1 nodes

Datacentre systems almost always assume crash-recovery, non-Byzantine nodes (with checksums against corruption) and unreliable networks.

Timing models

Model Assumption Realism
Synchronous Known upper bounds on message delay, processing time and clock drift Unrealistic for general networks (it would make failure detection perfect)
Asynchronous No bounds at all: messages can take arbitrarily long Too pessimistic: some problems become impossible (FLP, below)
Partially synchronous (Dwork, Lynch and Stockmeyer, 1988) The system usually behaves synchronously, but bounds can be violated for unknown periods The practical model. Algorithms like Raft and Paxos are always safe and live when the system behaves synchronously long enough

Impossibility results

Two classic results define what's possible:

  • Two generals problem: two armies must agree on an attack time by sending messengers through enemy territory, where messengers may be captured. No finite protocol guarantees agreement, because the last message's arrival can never be confirmed without another message. Lesson: you can't get certainty over an unreliable channel. That's why TCP's handshake, acknowledgements and all "exactly-once" claims are about probability and recovery, not certainty.
  • FLP impossibility (Fischer, Lynch and Paterson, 1985): in a fully asynchronous system where even one process may crash, no deterministic algorithm can guarantee that consensus terminates. You can't distinguish a crashed process from a very slow one. Real systems escape FLP using timeouts (partial synchrony), randomisation, or failure detectors. They guarantee safety always (never two different decisions) and liveness when conditions are good.

Safety and liveness are the two kinds of correctness property:

  • Safety: nothing bad ever happens (no two leaders in a term, no lost committed write). A violation is visible at a point in time and can't be undone.
  • Liveness: something good eventually happens (a leader is eventually elected, a request eventually completes). It can only be violated "at infinity".

Distributed algorithms usually never compromise safety and accept that liveness depends on the network behaving.

Latency and time

Network latency

Latency is physics plus queueing:

Operation Approximate time (order of magnitude)
L1 cache reference 1 ns
Main memory reference 100 ns
Read 1 MB sequentially from memory ~5 µs
Round trip within a datacentre (same zone) 50–500 µs
Read 1 MB from NVMe ~50–100 µs
Round trip between zones in a region 0.5–2 ms
Round trip across a continent (e.g. US east ↔ west) 60–80 ms
Round trip intercontinental (e.g. Mumbai ↔ US east) 180–250 ms

The speed of light in fibre is about 200,000 km/s, roughly 5 µs per km one way, so geography sets a hard floor. A synchronous cross-region write (consensus, synchronous replication) costs at least one inter-region round trip. That's why globally distributed databases have higher write latency, and why "read locally, write to a leader" architectures exist.

Latency is a distribution, not a number. Tails (p99, p999) come from GC pauses, queueing, retransmits, noisy neighbours, cold caches and slow disks. Fan-out amplifies tails: if a request calls 100 backends in parallel and each has a 1% chance of being slow, about 63% of requests hit at least one slow backend (1 − 0.99¹⁰⁰). That's the core argument of The Tail at Scale (Dean and Barroso, 2013), and why hedged requests, timeouts and tail-tolerant designs matter (Vol. 3 ch. 52).

Bandwidth-delay product: throughput over a long link is limited by how much data can be "in flight". TCP windows and flow control interact with latency, so batching and pipelining matter more over distance.

Clock uncertainty

Each node has its own clock, and clocks drift (quartz oscillators err by about 10–100 parts per million, or roughly 1–8 seconds per day uncorrected). NTP synchronises them to within milliseconds on good networks, and to tens or hundreds of milliseconds in bad conditions. Problems:

  • Wall clocks jump: NTP corrections step the clock backwards or forwards, leap seconds happen, VMs pause and resume, and someone sets the date manually.
  • Different nodes disagree about "now", so timestamps from different machines aren't reliably comparable at fine granularity.
  • "Last write wins" by timestamp (Cassandra, DynamoDB global tables) silently drops writes when clocks skew.

The responses (chapter 75 goes deep):

  • Use monotonic clocks for measuring durations.
  • Use logical clocks (Lamport, vector) for ordering.
  • Use bounded-uncertainty clocks (Google's TrueTime, AWS ClockBound) that expose an error interval.
  • Never rely on wall clocks across nodes for correctness.

Retries, duplicates and ordering

Retries and duplication

Because of ambiguity, clients retry, which means servers receive duplicates. Duplicates also come from at-least-once message delivery (chapter 68), proxies and load balancers retrying, users double-clicking, and failover replaying in-flight work.

The universal response is idempotency: design operations so that applying them twice has the same effect as once (chapter 74). Natural idempotence ("set status to PAID"), deduplication by request ID, unique constraints, and conditional writes are the main tools.

Retries also multiply load exactly when a system is struggling (retry storms, Vol. 3 ch. 52), so they need backoff, jitter, budgets and circuit breakers.

Ordering

Messages over different paths, retries, and parallel processing all reorder events. A network may deliver message B before message A even if A was sent first (over different connections or paths). Even with one TCP connection, retries at the application level reorder.

Questions every design must answer:

  • Does order matter here? Often only per key ("events for order 42 in order"), not globally.
  • Who defines the order? A single leader (a partition leader, a database primary) can assign a total order cheaply. Without one, you need logical clocks or consensus.
  • What happens on out-of-order arrival? Buffer and reorder by sequence number, reject stale updates with version checks, or design commutative operations (CRDTs, chapter 71) where order doesn't matter.

Concurrency without shared memory

Within one machine, concurrency control uses shared memory, locks and atomics (Vol. 3 ch. 38). Across machines, there's no shared memory and no global lock, only messages. Mechanisms:

  • Single-writer principle: route all writes for a key to one owner (a partition leader, an actor, a shard). This is the simplest and most scalable form of concurrency control.
  • Optimistic concurrency with versions or compare-and-set (chapter 74, Vol. 4 ch. 59).
  • Distributed locks and leases (chapter 77). They're harder than they look, and need fencing tokens.
  • Consensus for decisions that must be agreed (chapter 72).
  • Conflict-free data types that merge concurrent updates deterministically (chapter 71).

Partitioning and consistency

Partitioning

Data and work are split across nodes to scale (Vol. 4 ch. 61's sharding). Partitioning raises distributed questions:

  • Routing: how does a request find the owner of key K? Through a coordinator, a gossip-propagated ring, a lookup service, or client-side partition maps (Kafka clients learn partition leaders from metadata).
  • Rebalancing without losing or duplicating ownership: two nodes must never both think they own a partition (fencing, epochs).
  • Cross-partition operations require coordination (chapter 73).

The word "partition" has two meanings in this field: data partitioning (sharding) and network partitions (nodes unable to communicate, the P in CAP, chapter 70).

Consistency: the central trade-off

When data is replicated (for availability and locality) and partitioned (for scale), we must decide what readers are allowed to see. That's the consistency model (chapter 69): linearizable (as if one copy), sequential, causal, read-your-writes, eventual. Stronger models need more coordination, which costs latency and, during network partitions, availability (chapter 70). Weaker models are fast and available, but push complexity (stale reads, conflicts) onto the application.

Most of distributed systems engineering is choosing, per piece of data and per operation, how much coordination you're willing to pay for.

Distribution in code

Languages and runtimes

Some languages build distribution into the runtime. Most leave it to libraries:

Language / runtime Distribution model
Erlang/Elixir (BEAM) Location-transparent processes: send(pid, msg) works the same locally or on another node. Links and monitors deliver {:DOWN, …} messages when a process (or its node) dies, which is failure detection as a language primitive. Supervision trees restart failed parts. Philosophy: "let it crash", and design for partial failure from the start
Java No built-in distribution today (Java RMI is legacy). Libraries: gRPC, Kafka clients, Akka/Pekko Cluster (actors with cluster membership, sharding and distributed data), Hazelcast, Infinispan, Apache Ratis (Raft), ZooKeeper/Curator
Go Popular for distributed infrastructure (etcd, Kubernetes, Consul, CockroachDB, NATS, Temporal). The context.Context for deadlines and cancellation across calls is the standard idiom for partial failure. hashicorp/raft and etcd/raft are widely used Raft libraries
Rust Tokio + tonic (gRPC) + tower (timeouts, retries), raft-rs (TiKV's Raft), openraft; the type system helps with protocol state machines
C# / .NET Orleans (virtual actors: grains activated on demand across a cluster), Akka.NET, Dapr sidecars
Python Mostly clients and frameworks (Celery, Ray for distributed computing, Dask)
Cross-language Dapr (sidecar building blocks: state, pub/sub, actors), Temporal (durable execution)
Elixir
# Elixir: monitoring a process on another node: failure detection built into the language
pid = Node.spawn(:"worker@10.0.1.7", Worker, :run, [])
ref = Process.monitor(pid)
receive do
  {:result, value} -> {:ok, value}
  {:DOWN, ^ref, :process, ^pid, reason} -> {:error, {:worker_down, reason}}   # crashed, or :noconnection (net split)
after
  5_000 -> {:error, :timeout}            # still ambiguous: slow or partitioned?
end
Go
// Go: every remote call carries a deadline and honours cancellation, the idiomatic answer to partial failure
ctx, cancel := context.WithTimeout(parent, 300*time.Millisecond)
defer cancel()
resp, err := client.Reserve(ctx, &pb.ReserveRequest{Sku: "A1", Qty: 2, IdempotencyKey: key})
switch {
case errors.Is(err, context.DeadlineExceeded):
    // unknown outcome: retry with the SAME idempotency key, or reconcile later
case status.Code(err) == codes.Unavailable:
    // didn't reach a server (probably): safe to retry with backoff
}

Testing and verifying distributed systems

Because failures are partial and timing-dependent, ordinary tests miss most bugs:

  • Fault injection and chaos engineering: kill nodes, add latency, drop packets, partition networks (Toxiproxy, Chaos Mesh, Litmus, AWS FIS, Vol. 6).
  • Jepsen (Kyle Kingsbury): runs real databases under partitions, clock skew and crashes, records operation histories, and checks them against consistency models (linearizability checkers such as Knossos and Elle). Jepsen analyses have found consistency violations in many well-known databases and queues, which is a lesson in reading consistency claims sceptically.
  • Deterministic simulation testing: run the whole distributed system in one process with a simulated network, disk and clock, controlled by a seeded random generator, so any failure is reproducible by seed. Pioneered by FoundationDB, and used by TigerBeetle (Zig), Antithesis (as a product), Rust's madsim, turmoil (Tokio) and others.
  • Formal specification: TLA+ (Lamport) or P specifications, model-checked for safety and liveness. AWS has used TLA+ on core services (S3, DynamoDB) since the early 2010s and reported finding subtle bugs that testing would likely have missed.
TLA+
---- MODULE TwoGenerals ----
\* A tiny taste of TLA+: state variables, an initial predicate, actions, and an invariant to model-check.
VARIABLES aDecided, bDecided
Init == aDecided = FALSE /\ bDecided = FALSE
Next == \/ (aDecided' = TRUE /\ UNCHANGED bDecided)
        \/ (bDecided' = TRUE /\ UNCHANGED aDecided)
Agreement == (aDecided /\ bDecided) \/ (~aDecided /\ ~bDecided)   \* TLC finds a violating trace immediately
====

Lab: latency, tails, order and slow replicas

Python HTTP servers and Toxiproxy on one 2-core machine. Absolute numbers are smaller than on a real network; the shapes (tails, amplification, reordering) are the same.

Experiment 1: the cost of crossing a boundary

Text
a function call 0.04 µs | HTTP request on localhost: median 681 µs, p99 1505 µs
through a proxy adding 1±1 ms (like another zone): median 2.11 ms, p99 3.41 ms

The localhost request paid for serialising the request, two trips through the kernel's TCP stack, parsing, thread scheduling and the reply: 17,000 function calls' worth of time, with no network at all. Real deployments add propagation delay (fixed by distance), queueing in switches, TLS, and proxies or service meshes on each side (often 0.2–1 ms each). Keep a mental table: in-memory nanoseconds, local IPC tens to hundreds of microseconds, same zone about 0.1–0.5 ms, cross-zone about 1 ms, cross-region 30–150 ms. A request handler making 20 sequential cross-zone calls has spent 20 ms before doing any work.

Experiment 2: fan-out turns rare stalls into common ones

Sampling page latencies from experiment 1's measured backend distribution, for a page that waits for N parallel backend calls:

Text
  1 backend:  p50   682 µs, p99  1521 µs |  1% of pages hit a backend p99
 10 backends: p50   948 µs, p99  2713 µs | 10%
100 backends: p50  1700 µs, p99 71156 µs | 63%

The page's latency is the maximum of its calls, and the maximum of many samples is dominated by the tail. The measured data contained one stall of about 70 ms in 2,000 requests (a scheduler hiccup, the kind real servers get from GC pauses, compactions and noisy neighbours); with 100 calls per page, that one stall set the p99 of the whole page. This is Dean and Barroso's "tail at scale" result, and why search engines, feeds and dashboards that fan out widely use hedging, tighter per-call timeouts with partial results, and work to remove tail sources (GC tuning, request prioritisation, isolating batch jobs).

Experiment 3: ordering across connections

Text
10,000 numbered messages sent in order, round-robin over 4 connections:
received 10,000; 7,476 arrived after a higher-numbered message; first 12 received: [0, 4, 8, 12, 16, …]

The server drained one connection's buffer before the next, so messages arrived in per-connection runs: each connection preserved its own order, but the global order was gone. Connection pools, multi-threaded producers, retries, load balancers spreading requests over instances, and queues with multiple partitions or consumers all do the same. Receivers must not assume arrival order equals send order unless a single ordered channel connects them; design with per-key ordering (all messages for one order id on one partition or connection) and version checks (ignore an update older than what you've already applied).

Experiment 4: one slow replica, and hedging

Three replicas, each adding 2±1 ms; one also pauses 200 ms on 5% of requests (like a GC pause). 600 requests to a random replica:

Text
plain             : p50 3.4 ms, p99 203.3 ms, max 204 ms
hedged after 10 ms: p50 3.5 ms, p99 13.7 ms, max 14 ms

With plain routing, about one request in sixty landed on a pausing replica, enough to make p99 the pause length. Hedging sent a second request to a different replica if the first hadn't answered within 10 ms (roughly the normal p95) and used whichever answered first: p99 fell 15× while sending only a few percent extra requests. Hedging is only safe for idempotent operations (reads, or writes with idempotency keys), and the hedge delay must be tuned so it doesn't double load under general slowness; Google's systems hedge after the p95, and cancel the slower request when the first completes.

Try it yourself

  1. Add a bandwidth toxic of 100 KB/s and fetch a 1 MB response. How does latency change with payload size?
  2. Repeat experiment 2 with a backend latency distribution that has no outliers (drop values above p99.9). How much does the 100-backend p99 improve?
  3. Change experiment 3 so each message carries an order id and route by id % 4. Check that every order's messages arrive in sequence.
  4. Make experiment 4's hedging adaptive: hedge after the observed p95 of the last 100 requests, and measure the extra load.

Revision sheet: foundations of distributed systems

Key ideas

  • Why distribute: scale, availability, latency to users, organisational independence; each adds partial failure and coordination costs.
  • Fallacies of distributed computing: reliable network, zero latency, infinite bandwidth, secure network, fixed topology, one administrator, zero transport cost, homogeneous network.
  • System models: synchronous, asynchronous, partially synchronous timing; crash-stop, crash-recovery and Byzantine failures; FLP impossibility (no deterministic consensus in a fully asynchronous system with one crash).
  • Latency: numbers by distance; tail latency; fan-out amplification; hedged and tied requests; deadlines and propagation.
  • Partial failure and timeouts: ambiguous outcomes; timeouts as guesses; retries need idempotency; backoff with jitter.
  • Ordering: per-connection and per-partition order only; sequence numbers, versions, commutative operations.
  • Partitioning and replication: the two ways to spread data; consistency questions follow from replication.
  • Distribution in code: RPC frameworks (gRPC), the "remote call looks local" trap, explicit failure types.

Numbers to remember

  • Lab: function call 0.04 µs vs localhost HTTP 0.68 ms; with 100-way fan-out 63% of pages hit a backend's p99; hedging cut p99 from 203 ms to 14 ms; 4 connections reordered 75% of messages.
  • Rough latencies: same zone 0.1–0.5 ms, cross-zone ~1 ms, cross-region 30–150 ms; light in fibre ~200 km/ms.

Pitfalls

  • Remote calls without timeouts; sequential remote calls where batching or parallelism fits.
  • Judging services by average latency; ignoring fan-out.
  • Assuming message order across connections, threads, partitions or retries.
  • Treating a timeout as a failure of the operation; retrying non-idempotent operations.
  • Hedging non-idempotent requests or hedging without a budget.

Glossary

  • Tail latency: the high percentiles (p99, p99.9) of response time.
  • Fan-out: one request triggering many downstream requests.
  • Hedged request: a duplicate request sent after a delay to cut tail latency.
  • Partial synchrony: a model where timing bounds hold eventually, but not always.
  • Crash-recovery failure: a node that stops and later restarts with its durable state.
  • FLP result: the impossibility of deterministic consensus under full asynchrony with one faulty process.