Preparing your design workspace

Loading the problem and your latest saved attempt…

Activity Playlist Streaming Service

Design a music-streaming service for activity-oriented playlists and evaluate when one dedicated server should give way to a multi-server architecture.

Problem statement

For this exercise, assume a music-streaming application lets listeners browse activity-oriented playlists, start or resume track playback, and maintain a private playlist. Design the service and explicitly evaluate one dedicated application server against multiple application servers.

Media bytes are immutable once published, a playlist update must not silently overwrite a concurrent edit, and the loss of one application server must not interrupt an already authorized media stream. Music licensing, recommendation ranking, audio encoding, and social features are out of scope.

What to build

  1. Listeners can discover and read versioned activity-oriented playlists and track metadata.
  2. An authorized listener can start, seek, and resume playback of an immutable track rendition.
  3. A listener can add, remove, and reorder tracks in a private playlist without silently losing a concurrent edit.

At scale

  • Assume 500,000 daily active listeners and up to 20,000 concurrent audio streams at the evening peak.
  • Assume a catalog of 50 million tracks occupying about 200 TB across published renditions, with a small set of activity playlists becoming temporarily hot.
  • Target p95 control-API latency below 300 ms, playback start below 2 seconds on a healthy network, and 99.9% monthly availability for browsing and playback authorization.
  • Assume the read workload is far larger than playlist-write traffic and that clients may retry any control request after a timeout.