Design Monthly Artist Payouts from Streaming Counts

Quick Overview

Design a monthly artist-payout system that turns valid streaming events into reproducible obligations and idempotent external payments. The answer covers event deduplication, period closure, payout versions, timeout ambiguity, outbox delivery, provider reconciliation, late adjustments, and auditable financial state.

Design Monthly Artist Payouts from Streaming Counts

Company: Commure

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Technical Screen

# Design Monthly Artist Payouts from Streaming Counts Design a system for an audio platform that counts valid streams, aggregates them by artist, calculates each artist's monthly payout, and sends payments through an external payment provider. Payment requests must use idempotency keys so retries cannot pay an artist twice. Define assumptions about stream validity and the payout formula. Cover event ingestion, deduplication, monthly window closure, count corrections, calculation records, payment state transitions, external-provider retries, reconciliation, and auditability. ### Clarifying Questions to Ask - What makes a stream billable, and can fraud or rights corrections arrive after month end? - Is the payout a fixed rate per valid stream or an artist-specific contract? - When is a month considered final, and are adjustments paid in a later cycle? - What guarantees and webhook behavior does the external provider offer? ### What a Strong Answer Covers - Immutable stream events with stable identities and versioned validity decisions. - Reproducible monthly aggregates tied to a closed accounting period. - A money-safe ledger or payout record using integer minor units and explicit versions. - Deterministic idempotency keys derived from artist, period, and payout version. - A payment state machine that tolerates timeouts and ambiguous provider responses. - Reconciliation between internal obligations, provider records, and settled funds. ### Follow-up Questions - How would you correct an overpayment discovered after settlement? - What happens when the provider times out after accepting a payment request? - How would an artist dispute a stream count while preserving an auditable history?

Overview: Design a monthly artist-payout system that turns valid streaming events into reproducible obligations and idempotent external payments. The answer covers event deduplication, period closure, payout versions, timeout ambiguity, outbox delivery, provider reconciliation, late adjustments, and auditable financial state.

|Home/System Design/Commure
Commure logo
Commure
Apr 17, 2026
mediumSoftware EngineerTechnical ScreenSystem Design
1
0

Design Monthly Artist Payouts from Streaming Counts

Design a system for an audio platform that counts valid streams, aggregates them by artist, calculates each artist's monthly payout, and sends payments through an external payment provider. Payment requests must use idempotency keys so retries cannot pay an artist twice.

Define assumptions about stream validity and the payout formula. Cover event ingestion, deduplication, monthly window closure, count corrections, calculation records, payment state transitions, external-provider retries, reconciliation, and auditability.

Clarifying Questions to Ask Guidance

  • What makes a stream billable, and can fraud or rights corrections arrive after month end?
  • Is the payout a fixed rate per valid stream or an artist-specific contract?
  • When is a month considered final, and are adjustments paid in a later cycle?
  • What guarantees and webhook behavior does the external provider offer?

What a Strong Answer Covers Guidance

  • Immutable stream events with stable identities and versioned validity decisions.
  • Reproducible monthly aggregates tied to a closed accounting period.
  • A money-safe ledger or payout record using integer minor units and explicit versions.
  • Deterministic idempotency keys derived from artist, period, and payout version.
  • A payment state machine that tolerates timeouts and ambiguous provider responses.
  • Reconciliation between internal obligations, provider records, and settled funds.

Follow-up Questions Guidance

  • How would you correct an overpayment discovered after settlement?
  • What happens when the provider times out after accepting a payment request?
  • How would an artist dispute a stream count while preserving an auditable history?

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...