System Design Atlas
Application system

Parcel delivery with offline synchronisation

Record delivery events offline, synchronise them in order and complete delivery with reliable proof.

Follow the design
Symbolic package with delivery vehicle, route and mark.

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.

  1. Plan

    Assign the shipment to the active route version and the courier device.

  2. Capture

    Store delivery events locally with monotonic device sequence.

  3. Synchronization

    Accept events repeatably, apply them contiguously and bind the proof of delivery.

Workflow with tasks and outcomes

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.

User interfaceUsed in

Dispatch interface, courier device and shipment tracking read different views on the same shipment status.

Requests and receive feedback
Delivery API and worker for ingestion, sequence projection and backlogsDomain subsystems
  • Route guidance

    Maintains the active route, its version and device assignment.

    Described in the design
  • Synchronization ingestion

    Deduplicates event keys and detects conflicts.

    Described in the design
  • Sequence projection

    Apply a contiguous device sequence to the shipment.

    Described in the design
  • Evidence

    Ties the proof of delivery to a valid terminal delivery conclusion.

    Described in the design
The shipment is assigned to an active route version and a courier device. A contiguous event sequence leads to an evidenced delivery outcome.

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.

Offline first delivery

The device logs events locally and synchronizes them later in order.

Online guided route

Each step is immediately confirmed on the server side; coverage gaps limit usability.

Scan-based handling

Many stations report independent scans; global order and change of ownership require a different model.

Practical examples

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.