Kind of design round

Delivery, dispatch and live tracking system design interview questions

Delivery and logistics companies ask about where things are right now: couriers, vans and orders, updated every few seconds over a phone signal you can't trust.

Expect two halves. The write side takes a flood of location updates and keeps only what matters. The decision side picks who does which job, fast enough that food is still hot. Follow-ups test what the customer sees when the data goes quiet.

Common problems

Three problems to practise

The company version will be about their own product. These are the shapes it usually takes.

  1. Problem 1 · The screen every delivery customer watches

    Track an order live, from pick-up to door

    What makes it hard

    • Location updates every few seconds from thousands of phones
    • Pushing the position to the customer without polling
    • What the map shows when a courier loses signal in a tunnel

    Follow-ups to expect

    • “How often should the phone send its location, and who decides?”
    • “How do you keep the last hour of positions without keeping them all for ever?”
  2. Problem 2 · Dispatch, the part that decides cost and speed

    Offer the next order to the best courier nearby

    What makes it hard

    • Finding couriers near a point quickly (geohashes, H3 or PostGIS)
    • Offering one order to one courier at a time, and moving on when they ignore it
    • Two orders racing for the same courier

    Follow-ups to expect

    • “A courier accepts on a phone that was offline for ten seconds. Is the job still theirs?”
    • “How would you batch two orders from the same restaurant?”
  3. Problem 3 · The number customers judge you on

    Estimate when it arrives, and keep the estimate honest

    What makes it hard

    • Mixing prep time, travel time and how busy it is right now
    • Updating the estimate without making it jump around
    • Measuring how wrong it was, afterwards

    Follow-ups to expect

    • “Dinner rush doubles orders in twenty minutes. What changes?”
    • “Where does the model run, and what happens when it is slow?”
Where people lose marks

Common mistakes

  • Writing every location update to the main database
  • Polling for positions from the customer app
  • Matching on straight-line distance only
  • No plan for the courier who goes offline mid-delivery
Free library

Revise these first

By company

Companies with this kind of round

Each page has three problems close to what that company builds.

Planned · per company

The plan and prompts are free now. The paid part is planned: five timed mocks of their design round, by voice, on a whiteboard, with an interviewer who pushes back and scores you against the bar for your level. £19 / $24 / €22 per company, once, not a subscription.

Your move · one question

Would you pay for it? Tell us on the waitlist.

Join the waitlist

One email when it opens. We keep only your email address and your answer.

Got an interview coming up?

Add the company you are interviewing at and get their stages, in their order, in about a minute.