Skip to content
StackDecode
System Design
20. System Design Case StudiesAnimated

Music Streaming Platform (Spotify)

Stream audio and recommend music.

The idea

Audio is stored and cached in a CDN, with services for playlists and recommendations.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

ListenerAPICatalog serviceRecommenderAudio CDNAudio storage
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Browse the catalog and playlists from metadata services.

step:
1/4
at:
Listener
1/9

The green dot is a request moving through the system.

Step by step

  1. 1Search or recommend a track
  2. 2Fetch audio chunks from the CDN
  3. 3Buffer and play
  4. 4Log listening for recommendations

Where it is used

Media delivery and personalisation.

Watch out for

Licensing, offline mode and cold start for new users.

Related