ML System Design·Hard
Design a Real-Time Recommendation System for E-Commerce
Asked at Amazon, Netflix, Spotify
You are designing a real-time recommendation system for a large e-commerce platform with the following scale:
- 100 million monthly active users
- 50 million products in the catalog
- 500 million user-item interaction events per day
- Target latency: under 100ms for personalized recommendations on the homepage
- The system must serve recommendations across homepage, product detail page, and email campaigns
Requirements
- Design the end-to-end architecture from user event ingestion to serving recommendations.
- Address the cold-start problem for new users and new products.
- Explain how you would handle the explore-exploit tradeoff.
- Describe how you would measure success and run online experiments.
- Discuss how the system handles seasonality (e.g., holiday shopping spikes).
Your Answer
Unlock AI-powered scoring, all questions, and progress tracking.