Design Direct Deposit Money Movement for Small Business Payroll

Last updated: November 29, 2026

Quick Overview

Design the system that, once payroll is submitted, debits the employer's bank account, credits every employee's account by the pay date through ACH, and correctly handles returns, risk holds and reconciliation.

Gusto
System Design
Software Engineer
Gusto
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the system that, once payroll is submitted, debits the employer's bank account, credits every employee's account by the pay date through ACH, and correctly handles returns, risk holds and reconciliation.

Moving money is the part of Gusto's product where a bug turns directly into someone not making rent, and the company also carries credit risk when it pays employees before the employer's debit has fully cleared. The interviewer checks ledger design, idempotent batch processing, handling asynchronous bank returns and risk trade-offs.

What the Interviewer Expects
  • Uses a double-entry ledger as the source of truth for money state
  • Separates intent (payment orders) from bank file submission
  • Makes NACHA file generation and submission idempotent and recoverable
  • Handles R01 style returns on both debits and credits with clear workflows
  • Explains the credit risk of faster deposit tiers and how risk holds mitigate it
  • Covers reconciliation against bank statements
Key Topics to Cover
Double-entry ledger
ACH and NACHA files
Idempotency
Returns handling
Credit risk
Reconciliation
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • An employer's debit returns for insufficient funds after employees were already paid; walk through what happens.
  • How would you add next-day deposit without increasing losses?
  • How do you guarantee a payment order is never included in two ACH files?
  • How would you support real-time payments (RTP or FedNow) alongside ACH?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: on submission, create a debit from the employer for net pay plus taxes, credits to each employee, and tax payments later; deliver credits by the pay date; process returns and notices of ch...

High-Level Design

Payroll service emits PayrollSubmitted. A money movement service turns it into payment_orders (one debit, many credits) with deterministic ids derived from run and employee. A ledger recor...


Submit Your Answer
Markdown supported

Related Questions