PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/DoorDash

Design a scalable recommendation serving system

Last updated: Mar 29, 2026

Quick Overview

This question evaluates an engineer's ability to design scalable, low-latency, and resilient online recommendation serving infrastructure, emphasizing caching strategies, partitioning/sharding, data storage consistency, and observability.

  • medium
  • DoorDash
  • System Design
  • Machine Learning Engineer

Design a scalable recommendation serving system

Company: DoorDash

Role: Machine Learning Engineer

Category: System Design

Difficulty: medium

Interview Round: Onsite

## Scenario You are designing the **online serving infrastructure** for a large-scale recommendation system (e.g., a delivery app or e-commerce feed). The interview is **infra-focused**, not about model architecture. ## Requirements - Serve top-*K* recommendations for a user on app open / refresh. - Low latency: p50 < 50 ms, p99 < 200 ms (assume typical mobile product expectations). - High QPS (spiky traffic), multi-region support. - Must be resilient to downstream failures (feature store, embedding store, candidate retrieval). - Results should be reasonably fresh (new inventory/items should appear quickly; personalization should reflect recent behavior within minutes). ## What to cover 1. High-level architecture (online request path and offline/batch path). 2. Candidate generation + ranking services as black boxes (no deep model details), and how they are deployed. 3. **Caching strategy**: what to cache, cache keys, TTL/invalidation, and how to avoid staleness/incorrectness. 4. **Scaling strategy**: stateless vs stateful components, sharding/partitioning, load balancing, autoscaling. 5. Data storage choices (feature store/embedding store/item store), consistency expectations, and fallbacks. 6. Observability: key metrics, logs/traces, and alerting.

Quick Answer: This question evaluates an engineer's ability to design scalable, low-latency, and resilient online recommendation serving infrastructure, emphasizing caching strategies, partitioning/sharding, data storage consistency, and observability.

Related Interview Questions

  • Design a Food Rating System - DoorDash (medium)
  • Design a resilient bootstrap API - DoorDash (medium)
  • Design Real-Time Driver Pay Aggregation - DoorDash (hard)
  • Design Food Ratings and Driver Payouts - DoorDash (medium)
  • Design personalized restaurant search and recommendations - DoorDash (medium)
DoorDash logo
DoorDash
Oct 17, 2025, 12:00 AM
Machine Learning Engineer
Onsite
System Design
5
0

Scenario

You are designing the online serving infrastructure for a large-scale recommendation system (e.g., a delivery app or e-commerce feed). The interview is infra-focused, not about model architecture.

Requirements

  • Serve top- K recommendations for a user on app open / refresh.
  • Low latency: p50 < 50 ms, p99 < 200 ms (assume typical mobile product expectations).
  • High QPS (spiky traffic), multi-region support.
  • Must be resilient to downstream failures (feature store, embedding store, candidate retrieval).
  • Results should be reasonably fresh (new inventory/items should appear quickly; personalization should reflect recent behavior within minutes).

What to cover

  1. High-level architecture (online request path and offline/batch path).
  2. Candidate generation + ranking services as black boxes (no deep model details), and how they are deployed.
  3. Caching strategy : what to cache, cache keys, TTL/invalidation, and how to avoid staleness/incorrectness.
  4. Scaling strategy : stateless vs stateful components, sharding/partitioning, load balancing, autoscaling.
  5. Data storage choices (feature store/embedding store/item store), consistency expectations, and fallbacks.
  6. Observability: key metrics, logs/traces, and alerting.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More DoorDash•More Machine Learning Engineer•DoorDash Machine Learning Engineer•DoorDash System Design•Machine Learning Engineer System Design
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.