Design a Dasher Earnings Ledger with Instant Fast Pay Payouts
Last updated: November 29, 2026
Quick Overview
Design the ledger that records every Dasher earning (base pay, tips, promotions, adjustments) and supports both weekly payouts and on-demand instant cash-out, without ever paying a Dasher twice or losing a tip.
DoorDash
November 29, 20260
0
0 solved
Design the ledger that records every Dasher earning (base pay, tips, promotions, adjustments) and supports both weekly payouts and on-demand instant cash-out, without ever paying a Dasher twice or losing a tip.
Money-moving systems at DoorDash serve both consumers and Dashers, and instant payout to a debit card is a core Dasher feature. Interviewers probe double-entry accounting, idempotency with external payment providers, and how you reconcile a ledger that changes after the fact when tips are edited.
What the Interviewer Expects
- Use an append-only double-entry ledger instead of a mutable balance column
- Make every posting idempotent with stable keys
- Model the payout lifecycle as a state machine with a hold before calling the provider
- Handle post-delivery adjustments such as tip changes and fraud reversals
- Reconcile daily against the payment processor
- Explain consistency and audit requirements
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
- What happens if the payout provider times out and you do not know if money moved?
- How do you prevent a Dasher from cashing out a tip that is later reversed?
- How do you handle a negative balance after a clawback?
- How would you shard the ledger as Dasher count grows 10x?
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
Record earnings events as they finalize (delivery completed, tip added after delivery, peak pay bonus, support adjustment). Show a Dasher their available balance in near real time. Weekly automatic pa...
High-Level Design
- Earnings service consumes delivery and tip events and turns each into a ledger transaction.
- Ledger service stores transactions in a relational database with strong consistency. Each transa...