Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Design Devalore Commerce Recommendations

HardSystem Design00:00
Practice interviewer
In session
5 left
00:00

Your question is Design Devalore Commerce Recommendations. Take a moment with it on the right.

Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).

You need to log in / sign up to chat or submit.

Problem

Product Context

Devalore Commerce is the company’s e-commerce platform, and the personalized recommendation modules on the home feed, product detail pages, and cart page are key drivers of conversion. Design an end-to-end recommendation system that helps shoppers discover relevant products while balancing relevance, freshness, and business constraints.

Scale

SignalValue
DAU18M
Peak recommendation QPS85K
Active catalog45M SKUs
New or updated SKUs/day1.2M
Avg recommendation slots/request20
End-to-end p99 latency budget180ms

Assume traffic is split across three major surfaces in Devalore Commerce: homepage recommendations, similar items on product detail pages, and cart cross-sell recommendations. Users generate implicit feedback such as impressions, clicks, add-to-cart, purchases, dwell time, and skips. Product metadata includes category, brand, price, discount, seller, inventory, and text/image embeddings computed offline.

Task

Design the recommendation system and explain the major tradeoffs. Address the following:

  1. Clarify the product goals, success metrics, and the differences across homepage, PDP, and cart recommendation surfaces.
  2. Propose a multi-stage architecture for candidate generation, ranking, and re-ranking, including how you would handle cold-start users and new products.
  3. Define the offline training pipeline, feature store strategy, label construction, and how you would avoid training-serving skew.
  4. Describe the online serving architecture, including latency budget allocation, caching, fallback behavior, and capacity planning at peak traffic.
  5. Define an evaluation plan covering offline metrics, online experiments, guardrails, and segment-level analysis.
  6. Identify likely failure modes at scale, including feature drift, stale inventory, popularity bias, and monitoring gaps.

Constraints

  • Recommendations must exclude out-of-stock items and respect user-level blocked brands/sellers.
  • Freshness matters: inventory, price, and promotions can change within minutes.
  • Cost matters: the system should primarily run on CPU online; GPU use should be limited to offline training or a small high-value ranking tier.
  • Compliance: do not use sensitive attributes directly for personalization.
  • The system should degrade gracefully if personalization features are missing or delayed.