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.
- 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
- 1Search or recommend a track
- 2Fetch audio chunks from the CDN
- 3Buffer and play
- 4Log listening for recommendations
Where it is used
Media delivery and personalisation.
Watch out for
Licensing, offline mode and cold start for new users.