Diagram Desk

Food delivery sequence diagram

From an app order to the store accepting, a rider being assigned and the delivery finishing. Location updates repeat inside a loop box.

The diagram

Delivery appStoreRiderOrderForward orderAccepted, cookingDelivery requestAcceptsLocation updateEstimated arrivalDeliveredCustomerloop [Every minute]
Sequence diagram · 4 shapes

Reading it step by step

  • 1. 'Customer' sends a request to 'Delivery app': 'Order'.
  • 2. 'Delivery app' sends a request to 'Store': 'Forward order'.
  • 3. 'Store' replies to 'Delivery app': 'Accepted, cooking'.
  • 4. 'Delivery app' sends a request to 'Rider': 'Delivery request'.
  • 5. 'Rider' replies to 'Delivery app': 'Accepts'.
  • [loop: Every minute]
  • 6. 'Rider' notifies 'Delivery app': 'Location update'.
  • 7. 'Delivery app' notifies 'Customer': 'Estimated arrival'.
  • 8. 'Rider' sends a request to 'Customer': 'Delivered'.

Shape by shape

ShapeSymbolConnections
CustomerActor→ Delivery app(Order) · ← Delivery app, Rider
Delivery appParticipant and lifeline→ Store(Forward order), Rider(Delivery request), Customer(Estimated arrival) · ← Customer, Store, Rider, Rider
StoreParticipant and lifeline→ Delivery app(Accepted, cooking) · ← Delivery app
RiderParticipant and lifeline→ Delivery app(Accepts), Delivery app(Location update), Customer(Delivered) · ← Delivery app

Symbols used here

SymbolMeaning
Participant and lifelineA box on top and a dashed line below.
ActorA human participant; a stick figure.
Synchronous messageA call that waits; solid line, filled head.
ReplyThe answer; dashed line, open head.
Asynchronous messageSent without waiting; solid line, open head.
Combined fragmentloop, alt and opt boxes.

All sequence diagram symbols and how to draw

Diagram text

Paste this text into the editor to get the same picture, then change the names to fit your own work.

# Food delivery sequence diagram
sequenceDiagram
  actor C as Customer
  participant A as Delivery app
  participant S as Store
  participant R as Rider
  C->>A: Order
  A->>S: Forward order
  S-->>A: Accepted, cooking
  A->>R: Delivery request
  R-->>A: Accepts
  loop Every minute
    R-)A: Location update
    A-)C: Estimated arrival
  end
  R->>C: Delivered

More sequence diagram examples

All SeewolLabs tools