Critical flow
What evidence remains for a post after a response is lost, and what may happen next?
The architecture is now tested at its critical failure point. Feed fanout reads an old publication job after a post has been blocked. It may still create references, but the community API checks authoritative post state before delivery and hides the content. Any cached visibility decision requires versioned invalidation.
Starting point Feed fanout runs outside the post commit.
Assumptions for the example case
A fictional example design for a local community with text posts, a chronological home feed and traceable moderation. A feed projection with lag below 30 seconds is within the assumed target; from 30 seconds, the backlog is displayed and reported. All figures and test targets are illustrative assumptions.
Critical flow with commit and failure point
Critical flow · Commit and failure point
Reads exclude blocked or deleted posts using their authoritative visibility state.
Ordering and failure outcomes
- Required order
- Feed fanout reads an old publication job after a post has been blocked. It may still create references, but the community API checks authoritative post state before delivery and hides the content. Any cached visibility decision requires versioned invalidation.
- Crash before commit
- No new durable evidence exists yet for post B-31. 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
- A missing response from media file storage leaves the outcome unknown. Confirmed acceptance, definite rejection and missing evidence receive distinct states; the responsible role investigates using the same reference.
Delayed feed work respects current visibility
Delayed feed work respects current visibility.
Feed fanout reads an old publication job after a post has been blocked. It may still create references, but the community API checks authoritative post state before delivery and hides the content. Any cached visibility decision requires versioned invalidation.
A blocked or deleted post is excluded at read time using its authoritative visibility state, even when an old feed reference 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
- Missing evidence from media file storage 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
- Feed fanout reads an old publication job after a post has been blocked. It may still create references, but the community API checks authoritative post state before delivery and hides the content. Any cached visibility decision requires versioned invalidation.
- 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. Post B-31 receives no second effect.
Apply to your project
What feedback could be missing even though the underlying action has already taken place?