AlgoViz

Checkpoints, interrupts and replay

medium 6 min

A checkpoint is a durable workflow snapshot at a known boundary.

Trace the example

Follow the evidence through each stage, then test a change in the case.

Resume a refund without issuing it twice

Resume a refund without issuing it twice. Selected component: Checkpoint inside Workflow runtime.
Open full-size diagram

Workflow runtime

Approval pending · run 19

The run pauses before a consequential write. Store the proposed arguments and version so the approval refers to a specific refund.

A checkpoint precedes a completed refund and the worker restarts. What determines whether the charge has already changed?