System Design Atlas

International humanitarian aid logistics

06 / 10Worked example

The overall architecture

The offline buffer is not a second inventory ledger. Which conditions ensure this outcome?

The device only knows its shipment.

Starting point The remaining goods' whereabouts stay unresolved until evidenced.

Assumptions for the example case

A fictional shipment of 100 boxes of hygiene supplies between a warehouse and a distribution point. Local inventory ownership remains clear; offline devices document assigned shipments. All quantities, thresholds and operational targets in this design are illustrative assumptions.

Central allocation, local evidence

Central allocation, local supporting documents

Warehouse interfaceContention
Offline transport devicelocal buffers
Logistics APIAllocation + clarification
Relational datastoreStock + S-49 + Inbox
Synchronization adapterOffline receipt
Evidence storeU-49 + disposition
Coordination viewDifferences
Warehouse interface → Logistics APIAllocation
Logistics API → Relational data storeS-49 + stock
Offline transport device → synchronization adapterU-49 from buffer
Synchronization adapter → Relational data storeEvent inbox + shipment
Synchronisation adapter → Evidence storeStore immutable handover record before changing quantities
Logistics API → Evidence storeStore disposal record
Coordination View → Logistics APIDifference Clarification

Only the API allocates available stock; the offline device submits events through the adapter to the same shipment records.

Central API/data store; offline device and adapter; evidence storage; coordination view.

Responsibilities within the application

Modules of the Logistics API

Inventory allocationbinds boxes to consignments
Transport managementcarries out transfers of responsibility
Proof of receiptRecorded quantities received and damaged
Discrepancy resolutionDocuments the final disposition
Bestandszuteilung → TransportführungS-49 assigned
Transportführung → EmpfangsnachweisU-49
Empfangsnachweis → DifferenzklärungDamaged quantity

Each quantity movement has a clearly defined owner.

Internal modules: Inventory allocation binds boxes to shipments. Transport management tracks transfers of responsibility. Receipt records capture accepted and damaged quantities. Discrepancy resolution documents final disposition. The overall architecture maps these responsibilities to runtime processes and storage.

Runtime components and authoritative data

Runtime boundary
Warehouse interface → logistics API → relational data store. Offline transport devices buffer events for assigned shipments; the synchronisation adapter writes them to the same authoritative records. Evidence storage retains supporting documents. Logistics coordination handles discrepancies through the API; offline devices cannot reallocate globally available stock.
Module responsibilities
Inventory allocation binds boxes to shipments. Transport management tracks transfers of responsibility. Receipt records capture accepted and damaged quantities. Discrepancy resolution documents final disposition.

The offline buffer is not a second inventory ledger.

The offline buffer is not a second inventory ledger.

The synchronisation adapter accepts records; the API manages inventory.

The device only knows its shipment.

The relational data store maintains allocations and consignment state. The buffer preserves events until acknowledgement and does not determine available stock.

Alternative considered
Allowing every device to manage global inventory creates unresolved conflicts.
Trade-off
New commitments need a central connection.
Reassess
Autonomous warehouses would need their own quotas.

Try it yourself

Separate the storage responsibilities.

A hint for your attempt

The device only knows its shipment.

Compare with a possible solution
Central
The relational data store owns allocations and shipment state.
Local
The buffer preserves events until acknowledgement and does not determine available stock.

Apply to your project

How does “The offline buffer is not a second inventory ledger” apply to your own project?

Step 7: Resolve competing allocations before dispatch. Which conditions ensure this outcome?