KatInterview

Episode Release Pipeline and Follower Feed for an Audio Show Platform

System DesignModel answer
MediumModel answerSystem Designsystem-designfeed-generationfan-out

Last updated

Design how creators upload and release audio episodes, and how each subscriber sees new releases from followed shows, including shows with millions of subscribers.

You are designing the backend for an audio platform where creators release episodes of their shows and listeners subscribe to shows. When a creator releases a new episode, every subscriber of that show should be able to see it in their personal feed.

Begin by stating your assumptions. Useful things to pin down:

  • Scale: number of creators, shows and listeners, episodes released per day, and how uneven subscriber counts are across shows.
  • Freshness: how quickly a new episode must show up for subscribers.
  • Listener views: one combined feed across all subscribed shows, a per-show episode list, or both, and the ordering.
  • Audio: does the platform store and serve audio itself, and do listeners stream, download, or both?
  • Whether push notifications for new episodes are in scope.

Part 1: Releasing an episode

Describe the path from a creator uploading audio and metadata to the episode being available to listeners. Cover:

  • Upload flow, and where audio is stored and served from
  • Post-upload processing and the states an episode moves through
  • The episode data model and creator-facing APIs
  • How to make "released" reliable, so that visibility and downstream work are triggered exactly when the data is committed

Part 2: Getting new episodes to subscribers

Describe how each listener gets a feed of new episodes from the shows they subscribe to. Compare the main ways of building that feed. Cover:

  • Feed data model and listener API, including pagination and ordering
  • Work at release time versus work at read time, with rough numbers
  • Caching and keeping feed reads fast
  • Idempotency and retries for asynchronous work

Part 3: Very uneven audience sizes

Most shows have a modest number of subscribers, but a few have millions. Explain how your design serves both well and prevents the biggest shows from degrading the experience for everyone else. Cover:

  • How small and huge shows are treated differently, and how a show is classified
  • How the read path merges the results
  • Subscribers who rarely open the app
  • Notifications or other per-subscriber work for huge shows

Hints

Hint 1

Estimate the numbers first: if a show with 5M subscribers releases one episode, what does writing one feed row per subscriber cost, compared with reading the latest episodes of 200 followed shows at request time?

Hint 2

Think about a hybrid: precompute feed entries only for shows below a subscriber threshold, and pull episodes from large shows at read time, then merge by release time.

Hint 3

For reliable release, write the episode row and an outbox event in the same database transaction, and make every consumer idempotent by keying writes on (listener_id, episode_id).