Design a Music Player with Friend-Shared Charts

Quick Overview

Design an online music player that lets users share music charts or rankings with friends. Explore chart versions, friend-based access, ranking updates, and scalable audio delivery while making the unspecified ranking rules explicit.

Design a Music Player with Friend-Shared Charts

Company: Meta

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Onsite

Design an online music player that lets users share music charts or rankings with their friends. Explain how users find and play music, share a chart, and view a chart shared with them. Describe the data model, service boundaries, and the main read and update flows. ```hint Define what a shared chart represents Consider what a friend should see when the ranking changes after it has been shared. ``` ### Constraints & Assumptions - The chart's origin and ranking criteria are open design choices: clarify whether it is user-curated or generated from listening activity or another signal. - Traffic volume, catalog size, chart refresh frequency, and playback latency targets are unspecified. State the assumptions that guide your design. ### Clarifying Questions to Ask - Does sharing preserve a particular version of a chart, or give friends access to its latest ranking? - Can a user share with selected friends, and what should happen when a friendship or sharing permission is removed? - Is a playable music catalog already available, or must the design include media ingestion and processing? ### What a Strong Answer Covers - A clear meaning for a chart, its ranked entries, and the relationship between a chart and its shared versions. - The flow from sharing a chart to an authorized friend viewing it and playing a listed track. - How chart updates, access changes, and unavailable tracks affect that flow. - Storage and delivery choices suited to the assumed metadata traffic and audio bandwidth. ### Follow-up Questions - If a chart is generated from listening activity, how would you handle duplicate or late playback events? - How would you serve a widely shared chart without exposing it to users who lack permission?

Overview: Design an online music player that lets users share music charts or rankings with friends. Explore chart versions, friend-based access, ranking updates, and scalable audio delivery while making the unspecified ranking rules explicit.

Read the full Meta Software Engineer interview experience this question came from

Meta logo
Meta
Sep 2, 2026
hardSoftware EngineerOnsiteSystem Design
1
0

Design an online music player that lets users share music charts or rankings with their friends. Explain how users find and play music, share a chart, and view a chart shared with them. Describe the data model, service boundaries, and the main read and update flows.

Constraints & Assumptions

  • The chart's origin and ranking criteria are open design choices: clarify whether it is user-curated or generated from listening activity or another signal.
  • Traffic volume, catalog size, chart refresh frequency, and playback latency targets are unspecified. State the assumptions that guide your design.

Clarifying Questions to Ask Guidance

  • Does sharing preserve a particular version of a chart, or give friends access to its latest ranking?
  • Can a user share with selected friends, and what should happen when a friendship or sharing permission is removed?
  • Is a playable music catalog already available, or must the design include media ingestion and processing?

What a Strong Answer Covers Guidance

  • A clear meaning for a chart, its ranked entries, and the relationship between a chart and its shared versions.
  • The flow from sharing a chart to an authorized friend viewing it and playing a listed track.
  • How chart updates, access changes, and unavailable tracks affect that flow.
  • Storage and delivery choices suited to the assumed metadata traffic and audio bandwidth.

Follow-up Questions Guidance

  • If a chart is generated from listening activity, how would you handle duplicate or late playback events?
  • How would you serve a widely shared chart without exposing it to users who lack permission?