Hypothetical scenario. The worker sends Northwind’s Q3 update and reaches its deadline without an answer. Dev marks the update failed and proposes another operation. Priya draws three possibilities: the request never arrived, the effect committed, or the response was lost.
Maya: “Which of those possibilities did the timeout rule out?”
Dev: “Only the reply I waited for is missing; the effect still needs evidence.”
Describe the failure model before choosing recovery. Separate intent, effect and knowledge, then name what survives a restart and what can arrive late. The seller-facing response and the service’s retained obligation must both reflect the uncertainty.
What does the missing answer actually tell us?
The worker knows that its waiting condition expired. It does not thereby know whether the target received the request, committed the change, or sent an answer that was lost. A network boundary separates those events. Treating them as one atomic action hides exactly the window recovery must handle.
There are several compatible histories. The request may never leave the worker. It may reach a stopped target. It may commit before the target restarts. The response may arrive after the worker has stopped listening. These histories can produce the same local timeout. Recovery needs evidence that distinguishes outcomes, or a safe way to repeat the original operation despite that ambiguity.
Northwind therefore records the outcome as unresolved rather than inventing either success or failure. That classification is useful only if somebody owns the next transition. A durable operation record, a supported status lookup and a reconciliation policy turn uncertainty into managed work. A log line with no retained obligation does not.
Name the failures the design promises to handle
A crash-stop model assumes a participant stops taking steps and does not return. A crash-recovery model allows it to return, so the design must distinguish durable records from lost memory. Northwind needs the latter: restarted workers must recover their logical operation identities rather than reconstruct them from an empty process heap.
Communication can omit a request or reply, duplicate delivery through retry, delay a message, or reorder independent messages. A partition describes lost communication between groups while processes may continue working. A machine does not have to crash for another machine to become unreachable. Conversely, an apparently healthy network does not establish that an application is making progress.
Arbitrary or Byzantine behavior is a stronger assumption: a participant may send inconsistent or dishonest information. The selected internal recovery argument assumes correctly behaving, authenticated services that can crash and recover. It does not prove tolerance of a compromised database or malicious worker. Security controls and data validation remain necessary, but adding the word consensus would not silently extend this failure model.
Draw the two executions a timeout cannot distinguish
Hypothetical scenario. In execution A, a request never reaches the target. In execution B, it reaches the target and commits, but its reply is delayed. At the selected caller deadline, the caller has the same local history in both: a send and no reply. It cannot infer which remote history occurred.
| Caller observation | Execution A | Execution B |
|---|---|---|
| Send recorded | Request lost | Target receives |
| No reply by deadline | No effect | Effect committed; reply delayed |
| Safe next step | Same-identity lookup/retry | Same-identity lookup/retry |
An asynchronous model provides no useful fixed upper bound on message or process delay. A synchronous model supplies explicit bounds. Partial synchrony allows progress arguments after the required timing conditions eventually hold, without allowing an earlier timeout to become proof of remote non-execution. State which model the recovery protocol needs.
Crash-stop and crash-recovery also differ: a recovered process may retain durable state, lose volatile state and resume an old attempt. The FLP result concerns deterministic consensus with its stated asynchronous and failure assumptions; it does not say practical systems can never agree. Preserve safety during uncertainty, and state the eventual timing, available quorum or recovery assumptions needed for progress.
Separate intent, effect and knowledge
For a PostgreSQL-backed projection, an inspectable operation record can be committed with the projection update in one local transaction. That is a proposed implementation boundary, not an automatic feature of every remote API. If the target is external, Northwind must use its documented identity and status facilities or retain an explicitly unresolved outcome.
Cancellation has the same boundary problem. Stopping the worker’s wait does not revoke a request already executing at the target. A cancellation message can itself be delayed. If the product requires revocation, define a target-enforced state transition or generation rule and explain what happens when revocation races with completion.
Work the observation timeline
Hypothetical worked example. Select a 150 ms child deadline, matching the earlier request-budget exercise. Choose 20 ms outbound travel, 80 ms target work and 70 ms return travel for this particular attempt. These are teaching assumptions, not measurements. The complete round trip would take 20 + 80 + 70 = 170 ms.
The target commits at 20 + 80 = 100 ms after dispatch. The worker expires its wait at 150 ms. Thus the effect precedes the timeout by 150 − 100 = 50 ms, while the reply would arrive 170 − 150 = 20 ms after it. Nothing in that arithmetic permits the worker to infer that the target rolled back.
A retry that creates a new logical identity can now perform another effect. Retaining Q3 allows the target’s protected operation to recognize repetition, where that contract exists. The calculation does not establish the frequency of this window, an appropriate production timeout or a latency percentile. Those require actual distributions and end-to-end timer coverage.
State which timing assumption makes recovery progress
A synchronous model gives known bounds on relevant message and processing delays. A fully asynchronous model supplies no such finite bounds. Under partial synchrony, useful timing bounds may hold only after an unknown stabilization point, or the bounds may initially be unknown. These are assumptions used by a protocol argument, not modes a dashboard can certify from one quiet interval.
Hypothetical scenario. Northwind’s monitor waits 150 ms for Q3. In execution X the target crashed before receiving it. In execution Y the target is healthy, committed Q3, and every reply is delayed beyond the monitor’s observations so far. The monitor’s local history is identical in both. Any rule that calls X definitely crashed from those observations also makes the same claim in Y. Increasing the timer changes when suspicion begins; it cannot remove this indistinguishability in an unbounded-delay model.
A failure detector therefore supplies suspicion under a contract. A detector may eventually stop suspecting healthy participants after the environment stabilizes, while still making mistakes before then. Replacement ownership must remain safe through those mistakes: durable state and target-enforced generations prevent a suspected old owner from applying stale work if it resumes. Detection and exclusion are different responsibilities.
The Fischer–Lynch–Paterson result shows that deterministic consensus cannot guarantee termination in every admissible execution of its asynchronous message-passing model with even one possible crash. It does not say that production consensus never succeeds, that safety must fail, or that every distributed task is consensus. Practical systems state additional assumptions for progress and preserve safety when those assumptions do not currently permit a decision.
For this internal workflow, choose a crash-recovery model with durable operation identities and authenticated participants. Require enough reachable authority and sufficiently favorable communication for eventual recovery. Treat progress as conditional on those requirements; a dishonest participant is outside this crash-only argument. The operator may adjust suspicion to the observed environment, but cannot authorize an unsafe transition simply because a timer is inconveniently slow.
The monitor eventually stops making false suspicions. Was every earlier reassignment safe?
That conclusion does not follow. Eventual accuracy is a progress aid after its conditions hold. Earlier ownership transitions still need durable authority and effect-side enforcement. A safe protocol must tolerate the suspicions its model allows before stabilization.
A recovery policy needs safety and progress
Safety asks whether an unacceptable state can occur: an older product version replacing a newer one, for example. Progress asks whether an accepted obligation can eventually be resolved under the stated recovery conditions. A service that stops forever may preserve a safety rule while failing its useful purpose. A service that responds immediately with invented success fails a different promise.
State the environmental conditions for progress. If communication can be delayed indefinitely, a deadline cannot perfectly distinguish a slow participant from a failed one. Northwind’s operational policy can suspect a participant and route away from it, while the effect boundary still rejects obsolete ownership. Suspicion is useful for availability without becoming authority to overwrite data.
Also name correlated failures. Replicas on one shared power or administrative boundary do not represent independent survival simply because there are several processes. A bad deployment or erroneous deletion can affect all healthy replicas. Replication and recoverable history address different threats; later recovery work must preserve that distinction.
In the wild: timeouts need bounded interpretation
AWS’s guidance on timeouts and retries explains that side effects can occur despite a timeout and that retries can add load. Use that documented boundary to challenge the proposed Q3 recovery. It is evidence about remote-call design, not a report that Northwind experienced an outage.
The failure created by declaring failure
Hypothetical failure scenario. A worker marks Q3 failed after its local deadline. Its replacement creates another operation and applies an additional external effect. The original reply then arrives. Both attempts behaved consistently with their local timers; the application’s incorrect inference created the duplicate.
The repair is to preserve identity and uncertainty until supported evidence resolves the operation. Use this approach for accepted background work and externally visible effects. Avoid adding a durable workflow to every harmless read: retrying a read may be acceptable under its consistency and capacity contract. The decision depends on the effect and recovery obligation.
Challenge the proposed mechanism
Which safety claim can remain true while the caller cannot decide success?
Reveal the design reasoning
One intention can still cause at most its authorized effect if the target enforces operation identity and guarded transitions. Completion may remain pending. Progress additionally needs target availability and the protocol timing or quorum assumptions.
Decision and reconsideration: Keep timeout as an observation. Name separately the safety mechanism and the assumption that eventually permits resolution.
Check the failure model
The target commits before a timeout. Has the deadline failed?
Identify what the deadline bounds
No. It bounds the caller’s waiting, not the target’s ability to commit. In the selected timeline commitment occurs at 100 ms, while the reply is unavailable at the 150 ms deadline.
A restarted worker has no in-memory Q3 record. May it create a new operation?
Recover durable identity
It must recover the retained intent and outcome evidence first. Losing process memory does not erase an external effect. A replacement identity would bypass protection tied to the original operation.
Does tolerance of crash-recovery imply tolerance of a dishonest target?
Respect the declared assumptions
No. Correct participants that stop and restart differ from participants that fabricate evidence. A stronger adversarial model requires a separate argument and mechanisms appropriate to that trust boundary.
A failure model limits what the caller knows. Page 26 turns to readers: after a confirmed edit or during lost communication, which histories may the system expose without breaking the agreed promise?
Northwind decision log
Model correct services with crashes, recovery and unreliable communication.
Retain logical identity and unresolved outcomes across worker restarts.
Next, specify which versions a successful read may legitimately observe.
Go deeper: failure assumptions and observable evidence
- Book chapter: Database Reliability Engineering, chapter 3: Risk Management — Laine Campbell and Charity Majors. Turn assumptions into explicit risks.
- Book chapter: Database Reliability Engineering, chapter 4: Operational Visibility — the same authors. Distinguish evidence from an inferred diagnosis.
- Video lecture: Distributed Systems 2.2: The Byzantine generals problem — Martin Kleppmann. Compare crash assumptions with arbitrary behavior.
- Primary document: Timeouts, retries, and backoff with jitter — AWS. Examine remote-call uncertainty and retry load.