PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/System Design/Salesforce

Architect serving and storage for recommender

Last updated: Mar 29, 2026

Quick Overview

This question evaluates system architecture and data-infrastructure competencies for large-scale recommendation services, covering serving tiers, caching strategies, storage schemas, scalability, consistency models, fault tolerance, and integration with offline and online ML workflows; Category: System Design.

  • hard
  • Salesforce
  • System Design
  • Software Engineer

Architect serving and storage for recommender

Company: Salesforce

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Technical Screen

Design the serving and data infrastructure for a recommendation service. Cover client data fetching and API design, multiple stateless application servers behind a reverse proxy/load balancer, caching, and latency targets. Detail storage schemas for users, items, and interaction logs (user_id, item_id, signal, timestamp), indexing/partitioning strategies, how batch training reads and online serving writes/reads coexist, and approaches to scaling, consistency, and fault tolerance.

Quick Answer: This question evaluates system architecture and data-infrastructure competencies for large-scale recommendation services, covering serving tiers, caching strategies, storage schemas, scalability, consistency models, fault tolerance, and integration with offline and online ML workflows; Category: System Design.

Related Interview Questions

  • Design a TikTok-like short video platform - Salesforce (medium)
  • Design a scalable coffee ordering notification system - Salesforce (medium)
  • Design a configurable monthly API rate limiter - Salesforce (medium)
  • Design a pipeline orchestration system on Kubernetes - Salesforce (medium)
  • Design an async job system and cache layer - Salesforce (hard)
Salesforce logo
Salesforce
Aug 1, 2025, 12:00 AM
Software Engineer
Technical Screen
System Design
4
0

System Design: Recommendation Service (Serving + Data Infrastructure)

Context

Design a production-ready recommendation service for a large-scale consumer app. The service should return personalized item recommendations with strict latency SLOs and support continuous model training. Assume millions of users and items, peak thousands of RPS, and multi-region deployment. The design should cover both online serving and offline/batch ML workflows.

Requirements

  1. Client data fetching and API design
    • Public, versioned API for fetching recommendations.
    • Logging of user interactions (e.g., view, click, add-to-cart) for training and real-time adaptation.
    • Caching semantics and idempotency where appropriate.
  2. Application serving tier
    • Multiple stateless application servers behind a reverse proxy/load balancer.
    • Horizontal scalability, health checks, autoscaling.
  3. Caching and latency targets
    • Multi-layer caching strategy (client/edge, mid-tier, feature/model caches).
    • Specify end-to-end latency targets (p50/p95), and a latency budget per component.
  4. Storage schemas and data modeling
    • Schemas for users, items, and interaction logs with fields: user_id, item_id, signal, timestamp.
    • Indexing and partitioning strategies for OLTP and OLAP.
  5. Offline/online coexistence
    • How batch training reads the historical data.
    • How online serving performs low-latency reads and writes, including near-real-time feature updates.
    • Strategies to ensure feature parity between offline and online environments.
  6. Scaling, consistency, and fault tolerance
    • Sharding, replication, and multi-region considerations.
    • Consistency choices (strong vs eventual), read-your-writes where needed.
    • Fault isolation, retries, circuit breakers, fallbacks, and degraded modes.

Provide a clear, componentized architecture and justify key trade-offs.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Salesforce•More Software Engineer•Salesforce Software Engineer•Salesforce System Design•Software Engineer System Design
PracHub

Master your tech interviews with 7,500+ 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.