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
Only the API allocates available stock; the offline device submits events through the adapter to the same shipment records.
Responsibilities within the application
Modules of the Logistics API
Each quantity movement has a clearly defined owner.
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 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?