Software Design

Food Delivery Order Lifecycle State Machine

State Diagrams · made in Skemio

State machine of food delivery order flow: Placed to Accepted, Preparing, ReadyForPickup, InTransit, and Delivered.
State machine of food delivery order flow: Placed to Accepted, Preparing, ReadyForPickup, InTransit, and Delivered.

What it shows

  • Decoupled courier assignment happens parallel to kitchen preparation.
  • Physical handoff requires confirmation from both restaurant and driver.
  • Cancellation window collapses once the kitchen begins food preparation.

The takeaway

Orchestrating three distinct actors requires deterministic states with strict cancellation boundaries.

More state diagrams