Design Monthly Developer Payouts for Google Play Earnings
Last updated: November 29, 2026
Quick Overview
Design the system that calculates each Google Play developer's monthly earnings after Google's service fee, taxes, and refunds, and pays them out to bank accounts in their local currency.
0
0
0 solved
Design the system that calculates each Google Play developer's monthly earnings after Google's service fee, taxes, and refunds, and pays them out to bank accounts in their local currency.
A gentler Google payments screen question. The interviewer wants clear thinking about batch calculation from a ledger, thresholds, currency conversion, and idempotent bank transfers rather than deep distributed systems tricks.
What the Interviewer Expects
- Aggregate earnings from immutable transaction records
- Apply service fee tiers, refunds, and withholding taxes
- Use a minimum payout threshold and carry balances forward
- Make each payout idempotent per developer and period
- Produce statements developers can audit
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you handle the 15% fee on the first $1M in yearly revenue?
- What if a bank transfer is returned because of a wrong account number?
- How do you handle refunds that arrive after the month closes?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
- Inputs: purchase, subscription, and refund records for the month for each developer.
- Rules: service fee (15% or 30% by tier and product type), tax withholding by country, minimum payout threshold....
High-Level Design
- Month close: freeze the period; all transactions with timestamp in the month are final (late refunds go to next month).
- Earnings job (batch in BigQuery or Dataflow): for each developer, ...