Skip to content
Preptima
hardDesignConceptMidSeniorStaff

Walk me through an order's journey from placement to delivery. How would you model its status?

6 min readUpdated 2026-08-15

Answer

Short answer

Model the journey as milestone events, each carrying both the time it happened and the time you recorded it, and derive current status by projecting that set in a fixed milestone order rather than storing a mutable column, because events arrive late, twice and in the wrong sequence.

Was this answer helpful?

Likely follow-ups

  • A depot uploads yesterday's scans this morning. Which customers get notified, and of what?
  • How would you model an order that is partly cancelled after one of three lines has already shipped?
  • Two devices report contradictory delivery outcomes for the same parcel. Who wins, and who decides?
  • Where would you put the boundary between the order management system and the warehouse system?

Related questions

Further reading