When a Missing Response Leaves the Result Unknown

Seeing no response does not establish whether a server received or acted on the request. Application-level confirmation needs a separate contract.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace two possibilities
  2. Decide how to repeat
  3. Draw timelines that the client cannot distinguish
  4. Use a stable request identity where the operation permits it

Trace two possibilities

A request may never have arrived, or a server may have changed a setting before its response was lost. Both can end with the same client timeout. See timeouts and unknown outcomes.

Decide how to repeat

A request setting a stable state can be designed to tolerate repeat delivery. A request creating a new record needs a repeat identity or another policy when applicable. Idempotent transitions formalize the simplest case.[1][2]

Draw timelines that the client cannot distinguish

An export request times out before a reply arrives. One possibility is that the server never receives it. Another is that the server saves the export and its reply is lost. Both produce the same client observation. See safe function retries.

Timeline A: request fails before delivery → no saved job
Timeline B: server saves job → response lost
Client observes timeout in both cases

Use a stable request identity where the operation permits it

The application can expose a way to look up the result or repeat the request without duplicating the intended effect. Test lost response after a successful save as a separate case from pre-delivery failure.

References

  1. Larry Peterson and Bruce Davie, Computer Networks: A Systems Approach ↩
  2. IETF, RFC 9110: HTTP Semantics ↩