Design The Discovery Feed Ranking For A Recommendation First Marketplace

Last updated: November 29, 2026

Quick Overview

Design the system that ranks the personalized product feed on the Pinduoduo home screen for hundreds of millions of users, from candidate retrieval through multi-objective ranking, with fresh signals from the current session.

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

0

0

0 solved


Design the system that ranks the personalized product feed on the Pinduoduo home screen for hundreds of millions of users, from candidate retrieval through multi-objective ranking, with fresh signals from the current session.

Pinduoduo is built around discovery rather than search: much of the traffic is an endless feed of recommended products, so recommendation quality drives GMV and ad revenue directly. The interviewer wants a staged funnel with latency budgets, a clear objective that balances clicks, orders and platform health, and a plan for cold-start items from new merchants and farms.

What the Interviewer Expects
  • Lays out retrieval, pre-ranking, ranking and re-ranking stages with candidate counts and latency budgets
  • Chooses multi-task objectives (click, add to cart, order, GMV) and explains how they combine
  • Uses real-time session features through a streaming pipeline
  • Addresses cold start and exploration for new items
  • Defines offline metrics and online A/B metrics, including guardrails such as refunds and complaints
  • Discusses position bias and feedback loops
Key Topics to Cover
recommendation systems
two-tower retrieval
multi-task learning
real-time features
exploration
re-ranking
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
  • How do you blend ads into the organic feed without hurting long-term engagement?
  • How would you prevent the feed from collapsing onto a few cheap viral items?
  • Training data is two days stale after a pipeline failure. What degrades and how do you detect it?
  • How would you serve a 1 GB embedding table across many ranking servers?
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

Return about 20 products per page, with infinite scroll, in under 150 ms server time. Optimize long-term value: orders and GMV without degrading satisfaction (refunds, low ratings, complaints). Catalo...

High-Level Design

Funnel: (1) Retrieval, 10k candidates from several sources in parallel: a two-tower embedding model with ANN search, item-to-item co-purchase from recent clicks, trending in the user's region, and a c...


Submit Your Answer
Markdown supported

Related Questions