Nahuel D'Elias · Product engineer

(W01.5)vers1ons · 2025Shipped

Distribution

Building our own distribution, so remixes, royalties and data stay inside vers1ons.

Shows

  • Backend, led
  • Product, led
  • Frontend, led
Role
Owner, end to end
Stack
Next.js · Inngest · Postgres · Redis · Socket.IO · Object storage · ffmpeg
Outcome
Live in production. A remix no longer has to leave vers1ons to reach the stores.
The release page for "Night Swim" after submitting: its cover art, Pending release, and the ISRC and UPC it was issued.
From source pick to pending release · muted2:11

The decision

Remixes licensed on vers1ons had to leave for an outside distributor, and the royalties and data went with them.

Chose
Bring distributors in as partners: releases go out through their pipelines, and the data and royalties always come back through vers1ons.
Rejected
Sending artists elsewhere, where the royalties never come back, or becoming a distributor, and a competitor to our partners.
Cost
About ten months, learning each partner's rules first, and every failed delivery is ours to catch and fix.

The problem

Every remix that left for an outside distributor took its royalties and its data with it.

To reach Spotify or Apple Music, a remix licensed on vers1ons had to go somewhere else. Outside distributors know nothing about the license chain, so credits came out wrong and the royalties never came back through us.

What I did

I owned distribution end to end, from the partner calls to the screens.

I learned how distribution works from our partners and built our system around one delivery partner, from the job that takes a release to every store to the royalties that follow it. I designed and built the wizard too, so an artist gets through contributors, splits and metadata without needing to know any of it.

How it worksFrom one click to every storeNothing is written until every check passes. After that, the release is one Inngest function, and every hop is a step that can resume on its own.

From one click to every store

Release wizardTrack · Contributors · ReleaseCover · Review
Refuses before it writesownershiprights scope from the licenserelease timingpayout readinessnothing already in flight
One transaction · Postgresrelease jobrights grants up the chainwhat gets dispatched
Durable job · Inngest
  1. 1Issue release identifiers
  2. 2Set up the release
  3. 3Stage audio + art
  4. 4Assemble metadata
  5. 5Deliver to stores
  6. 6Wait for confirmation
partnerIdentifier registryissues the codes stores require
Object storagenormalized audiocover art
partnerDelivery partner Spotify, Apple Music, TikTok…
Live statusevery step a live channelthe wizard updates, no polling
  1. ready · press run, or hover any part of the system

Start from the license

A release starts from the track, not an empty project.

Most remixes are one track from one license, so a release starts from a new upload or a track you already licensed. A licensed track brings its listing’s audio and details with it, so there’s less to type and nothing to contradict.

The source step.
Pick the source

Under the hood · Delivery

A job that refuses before it does anything it can't take back.

Submitting runs nine checks and writes the release in one transaction. Then one durable job takes it to the stores. I wrote the most commits on it, 36. Store codes are permanent, so the job checks the partner’s storage, the label and genre, the code source, and the license’s stores and dates again before minting any. A re-run reuses the release it already made instead of creating a second one, a re-submit that has its codes skips that step, and it only retries what a retry can fix.

Submission received.
Submitted

Under the hood · Live status

Live status, no polling, never a stale step.

The job saves each milestone to the release before announcing it over Socket.IO, through Redis, to that artist only. The event is a nudge, not the data, so the page re-reads the saved state. A reload or a dropped connection never shows a stale step.

The release page, processing.
Live status

Under the hood · Stores

Store blocking that follows each license.

It started with a contract that limited a license to TikTok while our data had no limit. Now a store limit holds in the agreement, the UI and delivery, and browser tests caught 3 defects the unit tests missed. Some stores only travel together, so the picker groups them by delivery route. If the license excludes some stores, the job drops them, ships the rest and tells the artist. The stored store list matches what was delivered, so later edits and takedowns can’t reach an excluded store.

The store picker.
Stores

Under the hood · Royalties

Nobody's share gets lost on the way.

A release’s splits come from the signed split sheet, so every contributor is on it. My part, 26 commits on the payout code, is the contributor who’s owed money but has no account yet. vers1ons pays them directly by default and holds the money until they claim it. A wrong email can be fixed and the money moves with it, and once their payout account is ready, an hourly sweep pays anything still held.

The release's codes and credits.
Credits on the release

Under the hood · Failure

A failed release isn't a dead end.

The artist sees the step it stopped at and gets a notification that actually arrives. Before my fix, failure notices were saved where the bell never showed them. They fix and resubmit from the same draft without starting over, and the retry reuses the release and codes the first attempt made instead of minting new ones.

A failed release with Fix & retry.
When delivery fails

The flow, step by step

14 steps, one screen at a time.

  1. The source step.
    01Pick the sourceStart from a brand-new upload or a track you already licensed. A licensed track brings its listing's audio and details with it, so there's less to type and nothing to contradict.
  2. Track setup with the waveform preview picker.
    02Track detailsPick the store preview by dragging across the real waveform; stores play that 30-second clip before purchase. Choose none, and stores pick their own.
  3. Track setup, audio processed.
    03Audio checkedThe upload is checked and normalized before you go on, so a file a store would reject never gets that far.
  4. Contributors, locked from the listing.
    04ContributorsWhen the track comes from a published listing, its contributors arrive locked from the signed split sheet. The release can't contradict the license.
  5. Splits for master and publishing.
    05SplitsMaster and publishing each stay at 100% while you edit. Next stays greyed out, and says why, until both add up.
  6. Release details.
    06Release detailsDate, label, copyright lines, territories and pricing in one step. Errors read as sentences the artist can act on, not a partner's field names.
  7. The store picker.
    07StoresStores are grouped by delivery route. Some only travel together, so the picker groups them instead of offering switches we can't honor.
  8. The cover art step.
    08Cover artThe art's requirements sit beside the drop area: what the image can't contain, and the sizes stores accept.
  9. Review and submit.
    09ReviewThis is how the release will appear in stores.
  10. The attestations, all checked.
    10AttestationsWhat the artist confirms before anything is sent. Distribute stays disabled until every box is checked.
  11. Submission received.
    11SubmittedFrom here a durable job takes over: codes, staging, delivery, confirmation. Each step can resume on its own.
  12. The release page, processing.
    12Live statusThe release page updates as the job runs, with no polling: processing, then pending release once the codes are issued.
  13. The release's codes and credits.
    13Credits on the releaseThe issued codes, credits and splits on the release, as the stores receive them.
  14. A failed release with Fix & retry.
    14When delivery failsA failed delivery says why and offers Fix & retry. A pending release shows what can still change.

    What changed, and why

    The same part of the product in an early build and today.

    See what changed

    Reliability

    Every failure we've seen in production, we caught and fixed.

    Over 245 unit tests, tests that try to break the endpoints on purpose, metrics and tracing. Our first production canary found four bugs in the partner integration. I fixed all four, then added Prometheus monitoring and a playbook for support. 116 PRs over about ten months.

    Showcase content. Artwork belongs to its respective owners. Artist names, prices and royalty figures are fictional, and no affiliation is implied. Recordings come from an isolated local copy of the product running seeded data; the delivery to stores is staged.