CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
πŸŒ™β˜€οΈ
Log inStart free
Home/Templates/Food Delivery & QSR

πŸ” Food Delivery & QSR Β· Sequence

Food Order to Doorstep Sequence

Everything that happens between a customer tapping Place Order and the food arriving: payment, restaurant acceptance, rider assignment, pickup and delivery.

More Food Delivery & QSR templates

Drawing diagram…

What this diagram shows

  • Rider is assigned while the food is being prepared
  • Restaurant rejection triggers an automatic refund
  • Customer sees each step as a live status update

Prompt used

Food order sequence: the customer places the order and pays, the order service sends it to the restaurant app. If the restaurant accepts, it starts preparing and the dispatch service assigns the nearest rider, who goes to the restaurant, picks up the order and delivers it; the customer sees live status at each step. If the restaurant rejects, the customer is refunded automatically.

Mermaid code
sequenceDiagram
  actor C as Customer
  participant O as Order Service
  participant P as Payment Service
  participant R as Restaurant App
  participant D as Dispatch Service
  participant Rd as Rider App
  C->>O: Place order
  O->>P: Charge Rs 480
  P-->>O: Paid
  O->>R: New order
  alt Restaurant accepts
    R-->>O: Accepted, 15 min
    O-->>C: Preparing your food
    O->>D: Find rider
    D->>Rd: Pickup request
    Rd-->>D: Accepted
    O-->>C: Rider assigned
    Rd->>R: Arrive and pick up
    Rd->>O: Picked up
    O-->>C: On the way (live map)
    Rd->>C: Deliver
    Rd->>O: Delivered
  else Restaurant rejects
    R-->>O: Rejected
    O->>P: Refund
    O-->>C: Order cancelled, refund started
  end

Related templates

C4 ArchitectureProFood Delivery & QSR

Food Delivery Platform Architecture

A Swiggy/Zomato-style food delivery platform: customer, restaurant and rider apps, and the services that match orders, riders and payments.

State MachineFood Delivery & QSR

Food Order Status State Machine

Every status of a food delivery order, from placed to delivered, including restaurant rejection, no rider and customer cancellation.

FlowchartFood Delivery & QSR

Restaurant Kitchen Order Flow

How orders from dine-in, takeaway and delivery apps flow through a restaurant kitchen display system to the pass and out.

Database ERDFood Delivery & QSR

Food Delivery Menu and Orders Schema

A schema for a food delivery platform: restaurants, menus, items with add-ons, customers, orders, order items and riders.

DeploymentProFood Delivery & QSR

Food Delivery Peak-Hour Scaling

How a food delivery platform scales for lunch and dinner peaks: pre-scaling, autoscaling services, sharded databases and a surge-protected dispatch.

C4 ArchitectureProFood Delivery & QSR

Cloud Kitchen Operations Platform

A cloud kitchen that runs several virtual brands: orders from aggregators, a kitchen display system, inventory and dispatch.