Hi Temporal community,
I would appreciate a design review of a disaster-recovery scenario involving an external effect and a separately restored idempotency ledger. This is a broader failure model than Workflow Reset alone.
Related discussion:
Consider the following hypothetical sequence:
- An Activity sends business operation K to a non-idempotent downstream service.
- The service commits an effect that survives the later recovery event, but its response is lost.
- A separate application-side deduplication or recovery database is restored to a snapshot taken before K. Its uniqueness constraint is intact, but the record for K is absent.
- Temporal retries the Activity, or an operator resets the Workflow. K remains stable across attempts. Temporal persistence itself is not restored in this example.
The restored ledger’s absence of K does not by itself distinguish ‘never committed’ from ‘committed, then evidence rolled back’. A lookup also needs to account for an older request that may still commit after the lookup.
I am trying to identify the strongest conventional recovery design under these explicit assumptions, rather than attribute this failure to Temporal. In particular:
- Where should authoritative evidence of commitment live, and which recovery guarantees must it have relative to the effect?
- If the downstream service has no durable idempotency key or reliable operation lookup, is blocking automatic replay pending external reconciliation the appropriate policy?
- When lookup is available, what contract makes ‘not found’ sufficient to authorize another attempt? How should an in-flight older request be excluded or fenced?
- Would an independently retained ledger, a transactional outbox/inbox, or a recovery epoch help here, and under which additional assumptions? I would especially welcome explanations of where those mechanisms stop helping when the final effect is outside their transaction.
For a failure-injection test, I would keep the downstream effect history independent of the restored database and use it as the measurement oracle. Proposed measurements are committed effects per K, successful recovery when no effect occurred, time spent blocked, and the evidence used for each replay decision. A deliberately restored application ledger would be a separate test condition from ordinary retry or reset.
This is a proposed test scenario, not a reported result or a claim that FCI provides a new guarantee. Standard mechanisms may already cover it under the right assumptions. Existing examples, corrections to the failure model, and recommended recovery contracts would all be useful.
Thank you,
Alexandre Couret