System Design Atlas

Parcel delivery with offline synchronisation

08 / 10Worked example

Bottlenecks and trade-offs

What data does the control center need for 43 without 42?

A backlog can affect network, device, sequence or projection.

Starting point Name identities and time.

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.

Diagnostic path

From visible symptom to limited response.

Measurement-based decisions

Aging gap

Device, route and next sequence correlate

Differentiate missing event or device change

Trade-off
Additional context
Reassess
with a new synchronization protocol
Conflict Increasing

Isolate fingerprint mismatches

Data loss must not be hidden by overwriting

Trade-off
Manual clarification cases
Reassess
After investigating device behavior

Terms in this step

Gap age
Time since recognition of the next missing sequence.

Try it yourself

Formulate a diagnostic entry.

A hint for your attempt

S-17 alone is not enough.

Compare with a possible solution
Context
D-17, R-17/v4, expected 42, 43 buffered, age.
Next action
Check device status and retransmit sequence 42, or investigate the domain conflict.

Apply to your project

Define an alarm for 30 minutes gap age.

Operations maps signals to responsible roles.