WayfairSystem DesignFree preview
Design Shazam (Song Recognition)
Onsite system design: build a song-recognition service that identifies a song from a recorded audio clip. The round runs in three sessions: core functionality and design, then scaling to 100k user queries on weekends, then a pipeline for adding new songs that must also handle 100k QPS.
SWE
scaling
ingestion
search
Frequency
Low
Last asked
2026-09-11
Stage
onsite-system-design
Problem
Design Shazam: a system that records a short audio clip from the user and identifies the song.
The round is split into three sessions:
- Core functionality and design. Cover the main features and the end-to-end design for recognizing a recorded clip.
- Scaling the query path. Weekend traffic reaches 100k user queries. How does the system scale up?
- New-song ingestion. Design the pipeline for adding new songs to the catalog. What changes if this service also has to handle 100k QPS?
Pitfalls
- The prompt recurs across SWE onsite loops, and candidates who had seen it beforehand found the same question. Prepare it fully.
- Each session builds on the one before it. Keep the session-1 design modular so you can scale the lookup path and the ingestion path independently later.
Follow-ups
Weekend peak of 100k user queries. How does the system scale up?
How do you design the pipeline for adding new songs, and how does it change at 100k QPS?
Preparation
- Walk through the three-session structure end to end: core recognition flow, then query scaling, then ingestion.
- Work out separately how the read path (user queries) and the write path (new-song ingestion) each scale to 100k QPS.
- Prepare a clear explanation of how a recorded clip is matched against the song catalog.
Was this article helpful?
Comments
Sign in to join the discussion
Loading...
