Design Personalized Station Recommendations for Apple Music

Last updated: November 29, 2026

Quick Overview

Design the ML system behind a personalized radio station in Apple Music that starts from a seed song or artist and keeps choosing the next track for each listener in real time.

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

0

0

0 solved


Design the ML system behind a personalized radio station in Apple Music that starts from a seed song or artist and keeps choosing the next track for each listener in real time.

Apple Music has a catalog of 100M+ tracks and listeners who skip quickly, so a station is a sequential decision problem rather than a static top-k list. The interviewer checks candidate generation, sequence-aware ranking, real-time feedback, and how editorial and licensing constraints fit in.

What the Interviewer Expects
  • Frames the problem as next-track selection with feedback from skips and listens
  • Designs candidate generation from seed similarity, user taste and editorial sources
  • Builds a ranker using session context (recent skips, tempo, time of day)
  • Handles repetition, artist spacing and licensing rules
  • Explains logging, training labels and online metrics
  • Covers cold start for new users and new releases
Key Topics to Cover
sequential recommendation
candidate generation
session context
exploration
content embeddings
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 would you balance exploration of new music against playing safe favorites?
  • How do you react within one track when a user skips three songs in a row?
  • How would you support offline listening when the device is not connected?
  • What changes for a kids' or explicit-filtered account?
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

Functional: given a seed (song, artist, genre, or 'my station'), return the next track within about 200 ms at the end of the current one, and adapt after each skip, like, or full listen. Non-functiona...

High-Level Design
  1. Offline: train track embeddings from co-listening sequences (a two-tower or sequence model) combined with audio embeddings (tempo, timbre, mood from a model on the raw audio) and metadata. Build an...

Submit Your Answer
Markdown supported