AlgoViz

Distributed systems and partial failure

medium 4 min

A sender observes replies and deadlines.

Video lesson · Chapter 1 of 5

A price returns, stock stays silent

0:00 / 3:16

Did the shipment happen before the timeout?

1:15Reel

Theory

Read or listen first. About 1 min.

What it is

A missing response tells the caller that it has run out of time. The same observation is consistent with a lost request, slow processing or a reply lost after success.

Two different histories produce one timeout

CallerShippingShip order×Caller times out. Zero shipments exist.
The shipment request disappears before reaching the service. The caller times out and no shipment exists.

Why it exists

Repeating an uncertain shipment under a new identity may send two parcels. A stable intent lets the caller ask what happened to the original operation.

Words to know

Ambiguous outcome
A result for which the caller cannot tell whether the remote operation took effect.

How it works

Step through the idea, or press Play.

Step 1 of 3

Send the request. The parcel service receives a stable shipment ID.

Understand it

Worked example

Distributed systems and partial failure in practice

A shipment request times out. The parcel may already have been registered and only its response lost. Reissue the same intent under the same identifier or query its outcome before creating a fresh request.

Related case

What can a disconnected region promise?

Three regions replicate a directory of active deployment versions. A network split leaves one region isolated. Engineers need to know which reads and writes may still succeed.

Three regional deployment boards
A rollout across three regionsRegion Arevision 11Region Brevision 11Region Crevision 11Three voters have revision 11

Fast reads can include a revision and age.

Sources