Skip to the guide

Design food delivery (like DoorDash, Swiggy or Zomato)

AdvancedCase study12 pages

A customer orders dinner from a restaurant across town, the restaurant cooks it, a courier collects it and brings it to her door, and she watches each step on her phone. It's a relay race with three runners, where the baton is hot food that won't wait.

It's also asked as "design DoorDash", "design Uber Eats" or, in India, "design Swiggy". The closest case study is Ride hailing, with one more party and a meal that sets the timing. Interviewers like it because each order is a long workflow across three parties and a payment. A courier sent too early wastes thousands of courier-hours, and every stuck order must be noticed by something other than a hungry customer.

Below is a full mock interview following the seven steps of the framework. You're the candidate: at each Guess before you read on, stop and answer first.

Step 1 · Clarify the features and cut the scope

Minutes 0–5 · How this step works

Interviewer: Design a food delivery app like DoorDash.

You: A few questions first. Does the customer see which restaurants deliver to her and how long each takes?

Interviewer: Yes, with menus and a delivery time.

You: Does the restaurant have to accept each order? Can it say no?

Interviewer: It accepts on a tablet and says how long the food takes. It can reject or simply not answer.

You: Are couriers ours to dispatch, and can one carry two orders?

Interviewer: Yes to both, and they can decline.

You: Payment by card, with refunds when things go wrong?

Interviewer: Yes.

You: Then I'll cover browsing, ordering and payment, the restaurant's accept, courier dispatch, live tracking, and refunds. Out: groceries, scheduled orders, ratings and promotions. OK?

Interviewer: Good.

Each answer shapes the design: the accept is a wait with a deadline, the restaurant's time sets when a courier goes, two orders per courier mean batching, and refunds put payment inside the workflow.

Step 2 · Non-functional requirements

Minutes 5–8 · How this step works

You: Say 12 million orders a day, peaking at dinner. Placing an order answers within 2 seconds at p99, card authorisation included, and ordering is 99.99% available. The restaurant sees a new order within 5 seconds, and the customer sees her courier move within about 5. An accepted order is never lost, a card is charged at most once, and every order ends delivered, cancelled and refunded, or in front of a person.