Skip to content

ONE QUESTION. YOUR REASONING.

Design a local delivery service

Design a local delivery service like DoorDash or Gopuff: customers order items near them, a courier is assigned, and they track the delivery.

System designMaps and locationMid-level

YOUR BRIEF

What to work through

Work through a local delivery service as a spoken system design interview. Start by clarifying the scope, sketch a working design and explain the trade-offs behind your choices.

  • See which items can be delivered to my location within 1 hour
  • Order several items at once
  • Assign a courier to each order
  • Track the courier in real time until delivery

BEFORE YOU START

Constraints to discuss

  • Availability answers in under 100 ms
  • Strong consistency on orders: two customers never buy the same unit
  • 10 million orders a day across 10,000 distribution centers
  • About 20,000 availability queries a second
Need a starting point?

Watch for these common gaps as you prepare:

  • Straight-line distance as the delivery test
  • Checking stock and writing the order in separate steps without a transaction
  • Inventory and orders in different stores held together by a lock
  • A cache that is never cleared on order, so sold-out items stay listed
Read: System design questions and who asks them

Why this question is in the collection

These sources connect the problem to company interview reports or preparation guides. They do not guarantee what a company will ask you.

KEEP GOING

Your next question

Storage, files and linksDesign BitlyInfrastructure and platformDesign a rate limiterInfrastructure and platformDesign an A/B testing platformInfrastructure and platformDesign an ad click aggregator
Browse the collection
01

Pick a question

Read the brief and choose what you want to work on.

02

Talk it through

Explain your thinking. Respond to follow-ups. Draw when a design needs it.

03

Find your next improvement

Use the feedback from your interview to decide what to practise next.