Design Mint
Understanding the Problem
💰 What is Mint? Mint was a personal finance app: you linked your checking account, credit cards, loans and brokerage accounts, and it showed all your balances and transactions in one place, sorted into categories like Groceries and Rent. On top of that you set monthly budgets ("$600 on restaurants") and got alerts when you got close. The app never moves money. It only reads it, from thousands of banks that each expose their data differently.
Functional Requirements
Personal finance apps grow lots of features (credit scores, bill reminders, net worth charts), so agree with your interviewer on the core loop: connect accounts, see transactions, budget against them.
Core Requirements
- Users should be able to link accounts at their banks and card issuers, and see current balances.
- Users should be able to see all their transactions across accounts, kept up to date and automatically categorized, and fix a category by hand.
- Users should be able to set monthly budgets per category, see spending against them, and get an alert when they are close to or over a budget.
Below the line (out of scope)
- Moving money: bill pay, transfers, investing.
- Credit scores, financial advice and offers.
- Shared household accounts with multiple logins.
Non-Functional Requirements
Ask your interviewer for the scale. We'll design for 20 million users, each with 4 linked accounts on average, so 80 million accounts across around 10,000 institutions.
Core Requirements
- The system should keep transactions fresh: new transactions should show up within a few hours in the background, and within a minute or two when the user opens the app and asks for a refresh.
- The system must never double count or lose transactions. A pending charge that later posts is one transaction, not two.
- The system must protect bank access. We should never store bank passwords, and account data must be encrypted and access-controlled.
- Budget alerts should go out within minutes of the transaction that triggers them, and only once per threshold.
- The app should stay readable (balances, history, budgets) even when a bank or the aggregator is down.
Below the line (out of scope)
- Real-time (second-level) transaction feeds. Banks don't offer them to third parties in general.
- Multi-region active-active. One primary region with backups is fine.
Now the math. If we sync every account once a day, that's 80M syncs over 86,400 seconds, around 1,000 syncs per second. An average account has a couple of new transactions per day, so we write about 160M transactions a day, around 2,000 per second. At roughly 500 bytes per row that's 80 GB a day, around 30 TB a year. None of that is hard for a sharded database.
The hard part is the other side of every sync. Each one is a call to an external aggregator (Plaid, MX, Finicity) that calls a bank. Those calls are slow (seconds), rate-limited per institution, and cost money per connected account. Banks go down, change their login flows and ask users to re-authenticate.
The bottleneck in this design is not our database. It's the outside world: aggregator rate limits, bank outages and per-call cost. A strong answer spends its effort on deciding when to sync, and on applying what comes back correctly, rather than on scaling storage.