System Design Atlas

Construction change orders, drawing revisions and cost impact

07 / 10Worked example

Critical flow

What evidence remains for the change order after a response is lost, and what may happen next?

Test the architecture at its critical failure point. Approvers confirm a frozen change order. The API checks version and content bindings before commit. Uploading a new drawing after this commit creates a new revision awaiting review; the existing approval remains traceable in history.

Starting point The drawing archive remains outside the approval commit.

Assumptions for the example case

Original fictional design: an internal approval workflow for a change order with frozen drawings and costs. The illustrative internal threshold is 500000 cents. Up to and including this amount, one approver is sufficient; above it, this case requires a second approver. All figures and test targets are illustrative assumptions.

Critical flow with commit and failure point

Critical flow with commit

1
Contractors → Construction change order APIScope of work and costs
2
External drawing archive → Document processingDrawing bytes and hash
3
Document processing → Construction change order APIStable reference
4
Construction change order API → Change-order datastoreCommit shared prerequisites
5
Approval interface → Construction change order APIConfirm the exact content

Approval binds the drawing revision, scope of work and cost revision.

Approvers confirm a frozen change order. The API checks its version and content bindings before commit. Uploading a new drawing after this commit creates a new revision awaiting review; the existing approval remains traceable in history.

Ordering and failure outcomes

Required order
Approvers confirm a frozen change order. The API checks its version and content bindings before commit. Uploading a new drawing after this commit creates a new revision awaiting review; the existing approval remains traceable in history.
Crash before commit
No new durable evidence exists yet for change order N-32. 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 drawing archive, the outcome remains unknown. Confirmed acceptance, definite rejection and missing evidence have separate states. The responsible domain role investigates using the same reference.

Approval and drawing changes follow a definite order

Approval and drawing changes follow a definite order

Approval and drawing changes follow a definite order.

Approvers confirm a frozen change order. The API checks its version and content bindings before commit. Uploading a new drawing after this commit creates a new revision awaiting review; the existing approval remains traceable in history.

Approval binds the exact drawing revision, scope of work and cost revision; every business change creates a new version requiring review. 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 drawing archive 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
Approvers confirm a frozen change order. The API checks its version and content bindings before commit. Uploading a new drawing after this commit creates a new revision awaiting review; the existing approval remains traceable in history.
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. Change order N-32 receives no second effect.

Apply to your project

What feedback could be missing even though the underlying action has already taken place?

Next: separate pending business review from retrieval latency.