Remote Procedure Calls and Ambiguous Outcomes

Explain why a missing remote result leaves execution uncertain and design retries around stable application operation identities.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. A timeout may occur before or after execution
  2. State the guarantee at the effect boundary

A timeout may occur before or after execution

A server can commit a request and lose its reply. From the caller’s perspective that history can look like a request that never reached the server. Retrying without an application rule may repeat an effect. A read whose meaning permits repetition and an operation creating an irreversible record need different retry contracts.

State the guarantee at the effect boundary

An at-most-once effect requires duplicate recognition through failures allowed by the model. A client-supplied operation identity can let a server return the prior outcome from durable state. If duplicate history expires, the promised retry window must agree with retention. Retries also consume deadline and capacity. Idempotency keys describe how uniqueness and result storage fit one transaction. Latency budgets show how attempts share a total time allowance.[1][2]

References

  1. Andrew D. Birrell and Bruce Jay Nelson, Implementing Remote Procedure Calls ↩
  2. MIT 6.5840, Distributed Systems: Course Readings ↩