System Design Atlas

Parcel delivery with offline synchronisation

09 / 10Worked example

Operations and security

Who is allowed to set delivered?

Runbooks limit technical and domain responses.

Starting point Find the real proof and the state rule.

Assumptions for the example case

Illustrative design: 100,000 shipments per day, 50 events per shipment, 250 bytes of raw data per event, 500 events/s peak. This yields 5 million events and 1.25 GB of raw data per day. Retention, indices and replication are added.

Operating model

Signal, response, responsibility and completion remain connected.

Runbook excerpt

SignalRoleAction
Aging gapCoordination centreContact the assigned courier using device and route context; do not invent an event
conflictTechnical operationsSecure original and new payload
Superseded increasesDispatchCheck device allocation R-17/v4

Aging gap

Role
Coordination centre
Action
Contact the assigned courier using device and route context; do not invent an event

conflict

Role
Technical operations
Action
Secure original and new payload

Superseded increases

Role
Dispatch
Action
Check device allocation R-17/v4

Terms in this step

Completion evidence
The state, sequence and evidence reference can be read together.

Try it yourself

Evaluate a manual status correction without N-17.

A hint for your attempt

The invariant also applies in operation.

Compare with a possible solution
Result
Do not set delivered; the investigation remains open.
Permitted reaction
Verify the evidence and device history, then apply the regular state-transition contract.

Apply to your project

Define a controlled correction process.

The decision card connects the evidence.