Critical flow
What evidence remains for the train service after a response is lost, and what may happen next?
Test the architecture at its critical failure point. Publication fails after the cancellation commit. Feed processing rereads the stored publication job and updates the display using the status version. An older report arriving late cannot reduce that version.
Starting point Train service status and the display projection run separately.
Assumptions for the example case
Original fictional design: a regional rail line with dated services, stops and manually confirmed cancellations. An actual-status report is current at age < 90 seconds; at 90 seconds its timestamp is marked stale. All figures and test targets are illustrative assumptions.
Critical flow with commit and failure point
Critical flow · Commit, failure point and replay
Dispatch confirms the cancellation. Projection fails after commit and resumes from the status store.
Result: Later arrival of delay version 8 does not lower the visible status version.
A confirmed cancellation remains effective until an authorised correction.
Ordering and failure outcomes
- Required order
- Publication fails after the cancellation commit. Feed processing rereads the stored publication job and updates the display using the status version. An older report arriving late cannot reduce that version.
- Crash before commit
- No new durable evidence exists yet for train service F-24. The same command may be checked again; unconfirmed intermediate work provides no business guarantee.
- Crash after commit, before response
- The command journal entry records the original result. Identical replay returns that evidence; a fresh view of the current state comes from the read contract.
- External uncertainty
- Without a response from the timetable service, the outcome remains unknown. Confirmed acceptance, definite rejection and missing evidence have separate states. The responsible domain role investigates using the same reference.
Store the cancellation before publishing it
Store the cancellation before publishing it.
Publication fails after the cancellation commit. Feed processing rereads the stored publication job and updates the display using the status version. An older report arriving late cannot reduce that version.
A confirmed cancellation for the same service and operating day remains effective until an explicitly authorised newer correction exists. The exercise specifies the input and expected result.
- Alternative considered
- Submitting a new request after a response is lost can execute the same business operation again.
- Trade-off
- Outstanding evidence from the timetable service requires a worklist.
- Reassess
- Frequent unresolved outcomes require a more reliable contract for external reconciliation.
Try it yourself
Mark the commit point, failure point and next permitted action. Explain the effect of an identical retry.
A hint for your attempt
Trace the same request through the datastore and response path.
Compare with a possible solution
- Flow and failure
- Publication fails after the cancellation commit. Feed processing rereads the stored publication job and updates the display using the status version. An older report arriving late cannot reduce that version.
- Commit and replay
- The business change and command result are stored together before the response. If the response is lost after commit, read this result. Train service F-24 receives no second effect.
Apply to your project
What feedback could be missing even though the underlying action has already taken place?