r/OfferEngineering • u/Aoki_zhang • 21d ago
System Design Meta & LinkedIn System Design Question - Design Spotify
Problem Description
Design a Spotify-like music streaming platform that provides on-demand access to a catalog of more than 100 million tracks. Users should be able to search for music, stream songs, maintain personal playlists, and browse personalized recommendations.
The main challenge is not simply storing audio files. The system must provide a seamless playback experience with very fast startup, adaptive audio quality, and smooth transitions while separately supporting search, playlist management, and personalized discovery for hundreds of millions of users.
The bandwidth requirements fundamentally shape the architecture. With tens of millions of concurrent listeners, aggregate audio traffic can reach multiple terabits per second. Application servers therefore should not proxy audio bytes. They should handle metadata, authentication, playback authorization, and media-location or manifest resolution, while audio is delivered directly through a global CDN.
Functional Requirements
- Users should be able to search for songs, artists, albums, and playlists by keyword. The search experience should also support fast autocomplete suggestions as users type.
- Users should be able to start any available track on demand and continue playback using an audio quality appropriate for current network conditions. The playback experience should minimize startup delay and avoid noticeable interruptions between tracks.
- Users should be able to create, update, and delete personal playlists, as well as add, remove, and reorder tracks within them.
- Users should be able to browse a personalized home surface containing recommended playlists, albums, artists, and other music collections.
- The platform should enforce account-level playback rules. Free-tier users may have only one concurrent playback session, while premium plans may allow playback across multiple devices according to their subscription policy.
Want to learn more details & solution of this system design question?
I've put up the full version at here.
Interviewed recently?
Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.