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.

Participants and responsibilities

Dispatch, courier, recipient and company

The dispatcher assigns the active route. The courier records events on his device. The recipient provides an agreed proof; the company clarifies gaps and conflicts.

  • Dispatcher

    Maintains the active route version and detects outdated device assignments.

  • Courier

    Records the real delivery attempt and the agreed proof type.

  • Recipient

    Confirms the personal handover by PIN or signature; alternatively, the pre-agreed place applies.

  • Delivery service

    Clarifies gaps, conflicts and long unprocessed events.

Workflow in detail

From route to proof of delivery

Each step shows the action of the person, the task of the system and the achieved result.

  1. Accept the route assignment

    Action
    The dispatcher assigns the shipment to the active route.
    What the system does
    Binds the courier device and initializes the last applied sequence.

    Result: The courier has a versioned work order.

  2. Capture events locally

    Action
    The device captures two events with a gap offline.
    What the system does
    Stores both events locally with sequence, time, and content.

    Result: The local sequence contains a visible gap.

  3. Synchronize sequences

    Action
    The device synchronizes the existing events.
    What the system does
    Commits the earlier event and buffers the later one until the gap closes.

    Result: The server does not yet claim completion of the contiguous sequence.

  4. Closing gaps

    Action
    The device transmits the missing sequence.
    What the system does
    Applies it, then the buffered event, in a traceable sequence.

    Result: The sequence gap is closed.

  5. Bind proof of delivery

    Action
    The final event identifies the type of delivery evidence.
    What the system does
    Binds the proof of delivery in the terminal state commit.

    Result: The consignment is delivered and has a receipt.

  6. Resolve backlogs

    Action
    Delivery operations monitors unresolved gaps.
    What the system does
    Shows age, device, route and next expected sequence.

    Result: A scoped investigation is possible.

Workflow variations

Clear reactions to deviations

Gaps, duplicates and old route versions have explicit results.

Event not in order

A later event arrives before his predecessor.

Reaction
It is accepted and buffered; the projection remains at the gap-free state.
Result
Upon receipt of the predecessor, the sequence will continue to be applied.

Modified duplicate

The same event key has a different content.

Reaction
The system reports a conflict and preserves the first fingerprint.
Result
The domain state is not overwritten.

Old route version

A replaced route version sends after a reassignment.

Reaction
The event shall be documented as obsolete and not applied.
Result
The current route remains authoritative.
Open design steps