Architecture & LLD Preview
Food Delivery
Connect customers, restaurants, and delivery partners — order lifecycle plus partner assignment.
One Order aggregate holds two independent state machines — PreparationStatus and DeliveryStatus — with courier search starting the moment the kitchen begins cooking, reusing Cab Booking's exact candidate-cascade matching, and PICKED_UP gated on both machines aligning.
Core Design Challenge
"Design a food delivery system connecting customers, restaurants, and couriers. When do you start looking for a courier?"
What You'll Learn:
- ✦Real-time matching algorithms for drivers/riders and couriers
- ✦Dynamic surge pricing models based on supply and demand
- ✦Geospatial indexing and proximity coordinates search
- ✦Distributed transaction safety and payment settlement coordinates