Parcel delivery with offline synchronisation
Record delivery events offline, synchronise them in order and complete delivery with reliable proof.
Follow the design
The shipment remains traceable through coverage gaps, synchronization and completion.
Parcel delivery must remain traceable through coverage gaps. The system accepts event retries, orders events within the active route and protects terminal states from old device messages.
Plan
Assign the shipment to the active route version and the courier device.
Capture
Store delivery events locally with monotonic device sequence.
Synchronization
Accept events repeatably, apply them contiguously and bind the proof of delivery.
Domain subsystems and their interactions
A courier device sends versioned delivery events with its own sequence. The delivery control system buffers gaps, detects duplicates and binds a proof of delivery to the terminal shipment status.
Dispatch interface, courier device and shipment tracking read different views on the same shipment status.
Route guidance
Maintains the active route, its version and device assignment.
Described in the designSynchronization ingestion
Deduplicates event keys and detects conflicts.
Described in the designSequence projection
Apply a contiguous device sequence to the shipment.
Described in the designEvidence
Ties the proof of delivery to a valid terminal delivery conclusion.
Described in the design
Delivery event capture models
The example design runs a server-side versioned route and a local device sequence. Real-time telemetry, scanning events and manual clarification each require their own accuracy rules.
The device logs events locally and synchronizes them later in order.
Each step is immediately confirmed on the server side; coverage gaps limit usability.
Many stations report independent scans; global order and change of ownership require a different model.
Practical examples
- DHL: shipment status ↗
Product example for visible delivery states; no statement about the internal architecture.
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.