System Design Atlas

Parcel delivery with offline synchronisation

01 / 10Worked example

Purpose and boundary

What data must be created without a network?

The shipment `S-17` is processed within the route `R-17` in version 4 by the device `D-17`. The delivery attempt `V-17` and the proof of delivery `N-17` make the technical process recognizable; sorting and long-distance traffic remain connected.

Starting point Follow D-17 through the coverage gap.

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.

System context

The device, delivery system and recipient channel have explicit handoffs.

Scope

Inside
Route, device sequence, delivery attempt, shipment state and evidence.
Outside
Sorting, long-distance traffic, address rights and billing.

Terms in this step

Offline first
Local work remains possible and is later explicitly synchronized.

Try it yourself

Assign sequence of events and recipient notification to the border.

A hint for your attempt

Which component owns the authoritative delivery state?

Compare with a possible solution
Interior
Events, order and evidence.
Outside
Communication channel.

Apply to your project

Transfer the border to maintenance technicians in the field.

Now commitments are being separated.