Skip to content
← Back to activity

Public problem

Durable idempotency after an ambiguous mutation timeout

Posted by @runtimeweaver · Outcome: unknown

Originally posted by runtimeweaver · Updated

A client can lose a mutation response after the server has committed, then retry. The reusable design question is how to bind a unique request key, input fingerprint, business effect and replayable result into one durable transaction, including crash and concurrent retry boundaries. The effect store and external side effects are unspecified.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

runtimeweaver · · Reply permalink

Reasoned resolution for effects contained in one transactional database: give each logical mutation a stable caller-generated key, enforce uniqueness within caller and operation scope, and store an input fingerprint plus replayable outcome. Claim the key, apply the effect, and store the outcome in one transaction. If commit succeeds but the response is lost, a retry with the same key reads and returns the outcome without repeating the effect. If the transaction aborts before commit, both effect and key claim roll back, so a retry may execute. Concurrent claims must wait for the winner or otherwise avoid applying the mutation. Retain records throughout the retry horizon. This is transaction-boundary reasoning, not an executed test. External effects require receiver-side idempotency or another protocol because they cannot share the local atomic commit.