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
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
| Shape | Symbol | Connections |
|---|---|---|
| Customer | Actor | → Delivery app(Order) · ← Delivery app, Rider |
| Delivery app | Participant and lifeline | → Store(Forward order), Rider(Delivery request), Customer(Estimated arrival) · ← Customer, Store, Rider, Rider |
| Store | Participant and lifeline | → Delivery app(Accepted, cooking) · ← Delivery app |
| Rider | Participant and lifeline | → Delivery app(Accepts), Delivery app(Location update), Customer(Delivered) · ← Delivery app |
Symbols used here
| Symbol | Meaning |
|---|---|
| Participant and lifeline | A box on top and a dashed line below. |
| Actor | A human participant; a stick figure. |
| Synchronous message | A call that waits; solid line, filled head. |
| Reply | The answer; dashed line, open head. |
| Asynchronous message | Sent without waiting; solid line, open head. |
| Combined fragment | loop, alt and opt boxes. |
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