Design an Audio Fingerprint Recognition Service
Match a short noisy audio clip to a track in a pre-indexed catalog using deterministic fingerprint retrieval and verification.
Problem statement
Design an audio fingerprint recognition service. For this exercise, assume a user submits a short noisy audio clip and receives the best matching track from a pre-indexed authorized catalog using a bounded synthetic fingerprint workload.
The recognition journey, fingerprint contract, latency target, privacy boundary, and workload below are practice assumptions.
What to build
- Authorized catalog operators can ingest tracks, derive versioned fingerprints, and publish them atomically into a searchable catalog.
- A user can submit a short noisy clip and receive the best verified track match with confidence and offset, or an explicit no-match.
- Catalog operators can add or remove tracks and migrate fingerprint versions without mixed-version false matches.
- The service authorizes ingestion, rate-limits recognition, expires raw query audio, and never exposes reusable copyrighted audio through the fingerprint index.
At scale
- Practice assumption: the catalog contains 100 million tracks and each track contributes bounded landmark fingerprints.
- Peak weekend recognition traffic can reach 100,000 user queries per second, and each query contains 8 to 12 seconds of noisy audio.
- The new-track ingestion pipeline can receive 100,000 requests per second.
- Practice assumption: return a match or explicit no-match within two seconds at p95.
- Practice assumption: fingerprint hashes retrieve candidates, while offset-consistency verification determines the winner.