InterviewLegend

Design Shazam Song ID

Frequently asked
Alex Chen40 min readUpdated 309 real interview reports
The prompt: Design a song-identification service like Shazam. A user records a few seconds of audio from their phone, often in a noisy room, and the service returns the song that is playing. Support a catalog in the tens of millions of songs and scale the identify path to a very high query rate, with sharp peaks on weekends.

Wayfair asks this one in the high-level design round, and the framing does the heavy lifting. The panelist usually hands you the hard signal-processing part as a black box: assume there is a function that turns a piece of audio into a set of fingerprint hashes. The signal processing is off the table. The system wrapped around that function is the whole interview, and that is where all the scale and cost live.

So read the shape before drawing. There are two jobs here, and they could not be more different. One is ingestion: take the whole catalog, fingerprint every song once, and build an index you can search. That runs rarely and in the background. The other is identify. A phone records ten seconds of a song, and you have to find the one matching track out of tens of millions in a second or two. Thousands of other phones are asking at the same time. Ingestion is a batch problem. Identify is a high-fan-out read problem. Almost everything interesting is on the identify side.

The Wayfair angle
The reported Wayfair loops are consistent about where this round goes. The song-matching algorithm is explicitly a black box. The deep dives land instead on scaling to a very large query rate and on system behavior when traffic peaks on weekends. They ask how to cut cost the rest of the week, how to match trending music better, and about metrics like "songs correctly identified per day, week, and month." Read that as the rubric showing its hand. Spend your minutes on the index fan-out, the peak-versus-steady cost story, and what you would put on a dashboard, not on the DSP. This is the HLD round, distinct from Wayfair's separate low-level design round.
What's inside
  • 2 diagrams
  • 5 sections
  • about 40 min

Premium lessonWayfair interview guide

These took digging.

What candidates walked out with, from 20,000+ reports, forum threads behind logins and write-ups in Chinese. Then solved step by step.

100 companies. Checked every month.

Unlock all 100 companies

$49 a year · less than $1 a week · 30-day money-back guarantee

Had your Wayfair interview?Tell us what they asked. Reviewed before it goes in, never with your name.
Wayfair interview guide

Know what Wayfair asks before you walk in.

19 coding · 3 system design · 24 behavioral questions

Get Premium$49 a year · 30-day money-back guarantee
Or start freeNo card.

Get their questions first.

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.