Predict Food Preparation Time for Every Incoming Order

Last updated: November 29, 2026

Quick Overview

Design an ML system that predicts how long a restaurant will take to prepare each order at the moment it is placed, so rider assignment can send a delivery partner who arrives just as the food is ready.

Zomato
ML System Design
Machine Learning Engineer
Zomato
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

0

0 solved


Design an ML system that predicts how long a restaurant will take to prepare each order at the moment it is placed, so rider assignment can send a delivery partner who arrives just as the food is ready.

Zomato's delivery ETA splits into food preparation time and rider travel, and a bad prep estimate either leaves riders waiting at the counter or leaves food going cold. The round checks label quality, real-time features and how the prediction is consumed downstream.

What the Interviewer Expects
  • Explain why the label is noisy (restaurants mark food ready late or early) and how to clean it
  • Use real-time kitchen load features as well as static restaurant and dish features
  • Choose a loss that reflects asymmetric costs or predict quantiles
  • Serve under tight latency inside the order placement path
  • Measure online impact on rider wait time and food wait time, not only MAE
  • Plan for cold start on new restaurants
Key Topics to Cover
Label noise
Real-time feature store
Gradient boosted trees
Quantile regression
Online evaluation
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • Restaurants press 'food ready' when the rider arrives rather than when it is ready. How do you get a better label?
  • How do you detect that a restaurant's kitchen is suddenly overloaded in the last ten minutes?
  • Should the model's prediction be shown to customers directly, and why or why not?
  • How would you retrain safely after a major festival distorts the data?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

Predict prep time in minutes at order placement, with p99 latency under about 30 ms. Consumers: the time service (customer ETA) and the dispatcher (when to assign a rider). Errors are asymmetric: unde...

High-Level Design

Offline: build training rows from orders with features at placement time and a cleaned label. Train a gradient boosted model (fast, handles mixed features) per quantile or with a custom asymmetric los...


Submit Your Answer
Markdown supported

Related Questions