ML System Design

A Framework for Any ML Design Round

The 45-minute whiteboard round that determines your engineering level at tier-1 tech companies.

🟡 intermediate5 min readsystem-designmust-know
ML System Design interviews evaluate end-to-end architectural thinking. To succeed, use a structured 6-step framework: Clarify Problem & Business Metrics -> Data Ingestion & Features -> Baseline & Model Design -> Offline/Online Evaluation -> Serving & Latency Budget -> Monitoring & Feedback Loops. Always lead with simple heuristics before complex deep learning, and state tradeoffs out loud.

The 6-Step Whiteboard Framework

Never jump straight into model building. Structure your 45-minute whiteboard session into clear phases:

1. Scope & Goals   ─► 2. Data & Features   ─► 3. Model & Baseline
    (5 min)              (10 min)                (10 min)
                                                     │
6. Operations      ◄─ 5. Serving & Infra   ◄─ 4. Evaluation
    (5 min)              (10 min)                (5 min)

Step 1: Problem Framing & Constraints (5 mins)

Step 2: Data Pipeline & Feature Engineering (10 mins)

Step 3: Model Architecture & Baselines (10 mins)

Step 4: Evaluation Strategy (5 mins)

Step 5: Serving & Infrastructure (10 mins)

Step 6: Operations & Continuous Learning (5 mins)

Framing: Offline Metrics vs Online Business KPIs

SystemPrimary Offline MetricPrimary Online Business KPI
E-Commerce RecSysNDCG@10, Hit RateConversion Rate, Gross Merchandise Value (GMV)
Fraud DetectionPR-AUC, Precision at fixed RecallFraud Losses ($), Customer Friction (False Alarms)
Ad CTR PredictionLog Loss, Normalized EntropyClick-Through Rate, Ad Revenue (eCPM)
Search EngineMRR, Precision@kSession Success Rate, Zero-result Rate

Say this out loud

"I structure ML system design into six phases: first, clarifying business goals, QPS scale, and p99 latency SLAs. Next, defining real-time vs batch features and setting a simple heuristic baseline. For the core architecture, I use a multi-stage approach — fast candidate retrieval followed by a heavy ranking model. Finally, I define offline/online metric alignment, low-latency serving with Redis feature stores, and drift monitoring."

Follow-ups to expect

Check yourself

Question 1 of 3

What is the first thing a candidate should do in an ML System Design interview after receiving a vague prompt like 'Design Spotify's recommendation feed'?

More in ML System Design

See all →
Framing a Business Problem as ML5 minOnline vs Offline Evaluation5 minBatch vs Real-Time Inference5 min