Design a Food Delivery Order Assignment System

Medium · Low-Level Design · about 45 minutes

Asked at DoorDash, Instacart, Uber, Swiggy.

Design the part of a food delivery app that assigns orders to couriers. Restaurants mark orders ready; couriers go online and offline and report their location. Assign each ready order to an available courier, letting a courier carry up to 2 orders from the same restaurant, and reassign if a courier declines or goes offline.

Related guides