
π Logistics & Supply Chain Β· Sequence
From an order leaving the hub to the parcel at the customer's door: rider assignment, live tracking, OTP handover and proof of delivery.
Drawing diagramβ¦
Last-mile delivery sequence: the hub marks a parcel ready, the dispatch service picks the nearest available rider and optimises the route, the rider app accepts and scans the parcel, the customer gets a tracking link with live location, on arrival the customer shares the OTP, the rider takes a photo as proof of delivery, and the order service marks it delivered and notifies the customer.
sequenceDiagram
participant Hub as Hub System
participant D as Dispatch Service
participant R as Rider App
participant T as Tracking Service
actor C as Customer
participant O as Order Service
Hub->>D: Parcel ready for delivery
D->>D: Pick nearest rider, optimise route
D->>R: New delivery
R-->>D: Accepted
R->>Hub: Scan parcel
D->>C: SMS with tracking link
loop Every 10 seconds
R->>T: GPS location
T-->>C: Live location on map
end
R->>C: Arrived, ask for OTP
C-->>R: OTP 4821
R->>O: OTP + delivery photo
O-->>C: Delivered, rate your experienceA logistics platform that tracks shipments across carriers: booking, scan events from hubs, carrier integrations and customer notifications.
How a warehouse receives goods: appointment, unloading, checking against the ASN, quality check, putaway and stock update.
How a delivery company plans daily routes: orders, vehicle capacity, time windows and live traffic feed a route optimiser that assigns stops to drivers.
The states of a freight shipment booking, from quote and booking through pickup, transit, customs and delivery.
Where cold chain monitoring runs for vaccines or fresh food: temperature loggers in reefers and cold rooms, gateways, and a cloud alerting platform.
Tables for a logistics system: customers, shipments, packages, consignment legs, hubs, vehicles and tracking events.