CaseLearn logo
CASELEARN
Education that works
Try free
Home › Case studies › Spotify
TechnologySystem DesignStreamingAdvanced2015

Spotify: Building Music Recommendations at Scale

How Spotify built a recommendation engine that analyses billions of listening sessions to predict what 600 million users want to hear next.

The challenge

By 2015, Spotify had hundreds of millions of songs and users who wanted personalised discovery, not just search. Generic 'most popular' playlists felt impersonal, and manual curation couldn't scale to millions of unique listeners. The technical challenge was building a system that could analyse listening patterns across an enormous catalogue and surface genuinely relevant recommendations in real time, not batch-processed overnight.

The strategy

Spotify combined two distinct machine learning approaches: collaborative filtering (finding users with similar taste and recommending what they liked) and natural language processing on text written about music — blog posts, articles, forum discussions — to understand genre and mood associations that raw listening data alone couldn't capture. This hybrid approach became the foundation for Discover Weekly.

Want the full story, outcome and quiz?

Read how Spotify executed it, the results, key lessons and test yourself with a quiz. Free on CaseLearn.

Try the full case free →

Key lessons (preview)

More System Design cases

NetflixChaos Engineering — Breaking Things on PurposeWhatsApp100 Billion Messages a Day with 50 EngineersUberSurge Pricing Algorithm — Economics Meets EngineeringGoogleMapReduce — The Algorithm That Powered the Internet