Exactly-Once Effects Across Recovery
Trace a crash between an external write and a checkpoint and identify the sink property needed to avoid duplicate visible changes.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Replaying input can be correct even when work executes twice
A processor restores an earlier checkpoint and replays records to rebuild state. If an output reached a sink just before the crash, that sink may already contain the result of one replayed record. Reconstructing local state once per logical input does not automatically retract external writes. Define the observable effect the guarantee covers.
Couple the output to progress or give it a stable identity
A transactional sink can coordinate output commit with checkpoint decisions under an explicit recovery protocol. Another design can safely retry an idempotent write identified by the input or logical result. An arbitrary side effect with neither contract can be repeated. Checkpoint barriers align local state and inputs. Idempotency keys explain deduplication when a durable receiver owns that decision.[1][2]