PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/ML System Design/Salesforce

Design a recommendation system

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's competency in ML system design for recommendation systems, including choices of recommendation models, handling implicit feedback and cold-start, low-latency serving architecture, and storage/schema design for users, items, and interactions.

  • medium
  • Salesforce
  • ML System Design
  • Software Engineer

Design a recommendation system

Company: Salesforce

Role: Software Engineer

Category: ML System Design

Difficulty: medium

Interview Round: Technical Screen

##### Question Design a recommendation system for users and items: discuss model choice (e.g., NMF), data fetching with multiple servers and a reverse proxy, and data storage (user, item, and interaction tables).

Quick Answer: This question evaluates a candidate's competency in ML system design for recommendation systems, including choices of recommendation models, handling implicit feedback and cold-start, low-latency serving architecture, and storage/schema design for users, items, and interactions.

Related Interview Questions

  • Design an end-to-end recommendation system - Salesforce (hard)
Salesforce logo
Salesforce
Aug 4, 2025, 10:55 AM
Software Engineer
Technical Screen
ML System Design
3
0

Design a User–Item Recommendation System

Context

You are asked to design an end-to-end recommendation service that suggests items to users. The service should include choices for the recommendation model, the serving architecture with multiple application servers behind a reverse proxy, and a storage schema for users, items, and interactions.

Assume: millions of users and items, primarily implicit feedback (views, clicks, purchases), and a p95 online latency target under 150 ms for the recommendation endpoint.

Tasks

  1. Model choice and approach
    • Explain a reasonable baseline (e.g., NMF/matrix factorization) and alternatives.
    • Discuss handling implicit vs. explicit feedback, cold start, and ranking.
    • Describe training cadence and evaluation.
  2. Data fetching and serving architecture
    • Describe how multiple stateless servers behind a reverse proxy will serve recommendations.
    • Cover caching, timeouts/retries, fallbacks, and model/feature serving calls.
  3. Data storage design
    • Propose schemas for user, item, and interaction data.
    • Include any derived tables (e.g., learned embeddings/factors) and indexing/partitioning choices.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More ML System Design•More Salesforce•More Software Engineer•Salesforce Software Engineer•Salesforce ML System Design•Software Engineer ML 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.