KatInterview

Build a Multi-Institution Personal Finance Dashboard

System DesignModel answer
HardModel answerSystem Designsystem-designfintechdata-ingestion

Last updated

Design a system that ingests transactions and balances from banks and credit cards, normalizes and deduplicates them, and powers budgeting and alerting features.

Build a Multi-Institution Personal Finance Dashboard

You are designing a consumer-facing platform that lets users connect their bank accounts, credit cards, and loans in one place. Once connected, the platform continuously pulls in balances and transactions, organizes them, and helps users understand their spending.

Core capabilities to cover

  • Account linking: users can connect accounts from hundreds of different financial institutions
  • Data ingestion: balances and up to two years of transaction history are fetched and kept current
  • Normalization: raw data from different providers is mapped into a consistent internal format
  • Categorization: transactions are automatically labeled (e.g., Groceries, Rent, Subscriptions) and users can override labels
  • Budgets: users set monthly spending limits per category; the system tracks progress
  • Recurring bill detection: the system identifies regular charges such as Netflix or rent
  • Alerts: users receive notifications for low balances, unusually large charges, upcoming bills, and budget overruns

The platform is read-only — it never initiates transfers or payments.

What to address in your answer

  1. Ingestion strategy: how you connect to institutions (third-party aggregators vs. direct integrations), what protocols are involved, and how syncs are triggered
  2. API surface: the key endpoints your backend exposes to the client
  3. Data model: schema design for accounts, transactions, balances, and budgets — including multi-currency support and money-safe numeric representation
  4. Deduplication and reconciliation: handling pending-to-posted transitions, provider retries, and balance drift
  5. Security and privacy: where credentials live, encryption boundaries, and how you minimize PCI scope
  6. Scalability and storage: throughput estimates, sharding strategy, and how downstream features (budgets, alerts) consume transaction data
  7. Failure handling: what happens when a provider is slow, returns stale data, or goes down

Scale assumptions to work from

  • 20 million registered users, around 4 million active daily
  • Average of four linked accounts per user across roughly 15,000 institutions
  • Approximately 160 million transactions ingested per day at steady state, with sharp morning peaks when banks post overnight batches

Address trade-offs as you go. There is no single correct architecture, but your choices should be justified.

Hints

Hint 1

Start by separating the ingestion path from the read path. The system is write-heavy during batch windows but read-mostly for individual users — that asymmetry should drive your storage and sharding choices.

Hint 2

Pending-to-posted reconciliation is one of the trickiest parts. A provider often assigns a brand-new transaction ID when a pending charge settles, so you cannot rely on ID matching alone. Think about what signals you can combine to fuzzy-match the two records.

Hint 3

Never store raw amounts as floats. Use integer minor units (cents, pence, etc.) with an explicit ISO 4217 currency code, and keep each transaction in its original currency. Convert to a home currency only at display or aggregation time, recording which exchange rate was used.