Design a Food-Delivery-Like System (Pseudocode)

viaGlassdoor

Requirements: In 30 minutes, produce pseudocode/high-level design for a 'Zomato-like' food ordering and delivery system: browse restaurants, place an order, track delivery, handle payment.

Design: Identify core entities (Restaurant, MenuItem, Order, DeliveryPartner, Customer), the major services (Catalog Service, Order Service, Delivery-Assignment Service, Payment Service, Notification Service), and how they communicate (REST/gRPC between services, a message queue for order-state events). Sketch the order lifecycle as a state machine (Placed -> Confirmed -> Preparing -> Out for Delivery -> Delivered) and pseudocode for a couple of critical functions (e.g., placeOrder(), assignDeliveryPartner()). Interviewers weight pseudocode clarity and structured thinking heavily - write pseudocode close to real syntax rather than prose.

Add a follow-up question they asked
No follow-ups yet. Be the first to add one.
asked …
LeaderboardSalary
Language
Account