7
Back to Problem Dungeon

Food Ordering System

medium

Step 1: Requirements

Requirements

Questions to Ask

  1. Single restaurant or multi-restaurant? (Multi-restaurant marketplace)
  2. Delivery or pickup or both? (Both)
  3. Real-time order tracking? (Yes)
  4. Coupons and discounts? (Yes — percentage, flat, buy-one-get-one)
  5. Payment integration? (Out of scope — assume paid)
  6. Menu customization? (Yes — add-ons, special instructions)

Functional Requirements

  • Browse restaurants and menus
  • Add items to cart with customizations (add-ons, quantity, special instructions)
  • Apply discount coupons
  • Place order → restaurant confirms → preparing → ready → picked up → delivered
  • Track order status in real time
  • Cancel order (only before restaurant starts preparing)

Non-Functional Requirements

  • Order state transitions must be atomic
  • Concurrent orders per restaurant
  • Price calculation must be deterministic (no floating-point drift)

1 / 7 — Requirements