Design the Song Generation Pipeline With Streaming Previews

Last updated: November 29, 2026

Quick Overview

Design the backend that takes a user's prompt and lyrics, runs a large music generation model on GPUs, streams an early preview to the user within seconds, and delivers two finished song variations, for millions of songs per day with bursty traffic after launches.

Suno
System Design
Software Engineer
Suno
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the backend that takes a user's prompt and lyrics, runs a large music generation model on GPUs, streams an early preview to the user within seconds, and delivers two finished song variations, for millions of songs per day with bursty traffic after launches.

This is the core path of Suno's product, and the architecture interview for backend and infra roles is likely to touch something like it. The interviewer is checking queueing and GPU scheduling under bursts, streaming audio delivery, credit charging correctness and cost control.

What the Interviewer Expects
  • Separate API, job queue, GPU worker pool and storage/CDN
  • Charge credits with idempotency and refund on failure
  • Prioritize by plan tier and protect against bursty launches
  • Stream audio chunks as tokens decode, not only at the end
  • Batch inference to raise GPU utilization
  • Observability on queue time, time to first audio and cost per song
Key Topics to Cover
Job queues
GPU scheduling and batching
Audio streaming
Idempotency
Autoscaling and cost
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you autoscale GPUs when capacity is fixed by reservations?
  • How do you keep the preview and final versions consistent?
  • What happens to in-flight jobs when a GPU node dies?
  • How would you add a cheaper draft model tier?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: submit prompt, style tags, optional lyrics and model version; return two variations; stream a playable preview; store finished audio and metadata; show status. Non-functional: time to firs...

High-Level Design

Client calls POST /generations with an idempotency key. The API validates the prompt (safety filters, named-artist rules), reserves credits in Postgres, and enqueues a job in a priority queue (per t...


Submit Your Answer
Markdown supported

Related Questions