Design Recurring Autopay for Loan Payments

Last updated: November 29, 2026

Quick Overview

Design the system that pulls scheduled monthly payments for SoFi personal, student and home loans from members' linked bank accounts on their due dates, handles retries and holidays, and never charges a member twice for the same installment.

SoFi
System Design
Software Engineer
SoFi
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the system that pulls scheduled monthly payments for SoFi personal, student and home loans from members' linked bank accounts on their due dates, handles retries and holidays, and never charges a member twice for the same installment.

Autopay matters to SoFi lending because it reduces delinquency and often carries a rate discount, so missed or duplicate pulls hurt members directly. The interviewer checks job scheduling at scale, exactly-once effects on top of at-least-once execution, ACH timing realities, and member communication.

What the Interviewer Expects
  • Stores schedules as data and materializes due installments ahead of time
  • Uses a unique key per (loan, installment) so a payment is initiated at most once
  • Accounts for ACH cut-off times, banking holidays and return codes
  • Separates scheduling, payment initiation and status tracking into clear components
  • Defines retry policy, member notifications, and handling of insufficient funds returns
Key Topics to Cover
job scheduling
ACH payments
exactly-once effects
retries
state machines
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
  • How would you spread the load if most payments are due on the 1st?
  • What happens if a member changes their bank account two days before the due date?
  • How do you handle an ACH return that arrives four business days later?
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: enroll and cancel autopay, choose account, pull on due date (or the prior business day), retry policy after failures, notify before and after pulls. Non-functional: no double charges, no m...

High-Level Design

An Autopay service stores enrollments. A nightly Planner materializes payment_intents for the next few days with a unique constraint on (loan_id, installment_id). A Dispatcher picks intents whose ...


Submit Your Answer
Markdown supported