System Design Atlas

International humanitarian aid logistics

03 / 10Worked example

Scale estimates

Data buffers and goods have different units. What conditions ensure the result?

Small events can describe many physical boxes.

Starting point The inventory balance distinguishes acceptance from damage.

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.

Boxes and device events

Box flow and offline buffer separately

Consignment S-49100 boxes
Sendung S-49 → Empfangsbilanz98 + 2
Receipt balance100 dispositions accounted for
Offline device1,000 events
Offline-Gerät → Lokaler Puffer1000 × 2 kB
2 MB per deviceup to synchronization

Goods quantities and the device data buffer require separate capacity calculations.

100 boxes describe the goods flow; 1,000 × 2 kB describe a separate data buffer.

Illustrative load and domain calculations

  1. 01

    Consignment balance

    100 boxes

    98 accepted + 2 damaged

    For the designDamaged boxes require separate proof of whereabouts.

  2. 02

    Offline buffer

    2 MB per device

    1000 events × 2 kB

    For the designDecimal raw data size; synchronise photos separately.

Data buffers and goods use different units.

Data buffers and goods use different units.

Calculate storage capacity and goods quantities separately.

Small events can describe many physical boxes.

1,000×2 kB=2 MB without photos. 98+2=100 boxes, regardless of repetitions.

Alternative considered
Treating event counts as box counts produces incorrect quantities.
Trade-off
Two measured variables are required.
Reassess
Photos significantly change storage requirements.

Try it yourself

Calculate 1,000 events and shipment balance.

A hint for your attempt

Small events can describe many physical boxes.

Compare with a possible solution
Buffer
1,000×2 kB=2 MB without photos.
Goods
98+2=100 boxes, regardless of repetitions.

Apply to your project

How does “Data buffers and goods use different units” apply to your own project?

Step 4: Event identifiers remain stable across offline retries. Which conditions ensure this outcome?