Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Personal Finance Aggregation Platform

Design a secure personal-finance platform that links external accounts, reconciles changing transactions, and serves trustworthy budgets and spending insights.

Problem statement

For this exercise, assume a consumer links bank, card, loan, and investment accounts through third-party data aggregators, then uses one dashboard to review transactions, categories, budgets, and spending insights.

The system must never store a user's bank password, and it must encrypt financial data at rest and in transit. It must support applicable financial-data compliance through auditable consent and access plus configurable retention and deletion controls; selecting a jurisdiction-specific legal framework is outside scope.

Also assume provider observations may be delayed, duplicated, reordered, corrected, or deleted, and a pending transaction may post under a different provider ID; the system must converge without double counting and keep each user's financial data isolated.

Users can correct a transaction category, and that correction must flow into budgets and analytics. Budget alerts should be useful without repeatedly notifying the user for the same threshold crossing. Payment initiation, tax filing, credit decisions, and investment advice are outside scope.

For this exercise, the main variant includes categories, budgets and alerts. Also explain a reduced variant that only links bank accounts and displays spending: categorization, budgets and notifications are not required in that reduced variant.

Keep the same account-linking, tenant isolation and trustworthy transaction history in both. Category reports in the main variant must expose both transaction counts and monetary totals by period and currency; state one transaction-inclusion policy and apply it consistently to both.

Explain user access-token expiry, refresh and revocation separately from provider consent and provider-token renewal.

For this exercise, use two data centers in one jurisdiction. A loss of the active center should restore authorized reads and durable ingestion admission at a healthy secondary within five minutes when the old writer can be fenced and the required authority is available.

State the cross-center acknowledgment and recovery-point policy; never promote an unproven second writer merely to meet the time target. If safe promotion cannot be established, make the delayed or read-only state explicit.

Show how financial state, token and consent state, sync cursors, alert-crossing generations, intent and inbox identities, and derived-view freshness survive or reconcile during failover.

Finally, explain a small logs-based monitoring architecture for this platform: how useful redacted events are collected, transported, retained and queried to detect failures and processing delay. Do not log bank credentials, tokens or raw financial payloads.

For this exercise, budget notifications are durable in-app inbox entries with the same stable threshold-crossing identity across retries, rebuilds and failover; external email and push channels are outside this bounded variant.

What to build

  1. A user can securely link supported financial accounts, observe connection and synchronization status, and refresh or relink a degraded connection without exposing bank credentials to the platform.
  2. The platform ingests transactions from every linked account and reconciles duplicate deliveries, pending-to-posted transitions, corrections, and deletions into one trustworthy user-visible history.
  3. The platform assigns categories from merchant and model signals, lets a user override one transaction's category, and preserves the user decision through later provider updates.
  4. A user can set monthly category budgets, receive deduplicated threshold alerts, and view low-latency category totals, trends, month-over-month comparisons, and unusual-spending indicators. Include transaction counts alongside monetary totals, grouped by period and currency under a consistent inclusion policy, and let users read their durable in-app budget alerts.

At scale

  • For this exercise, assume 5 million monthly active users, 25 million linked accounts, 1 billion normalized transactions, peaks of 10,000 provider updates per second, and 20,000 common reads per second.
  • For this exercise, make healthy-provider updates visible within 15 minutes and common dashboard reads complete within 500 milliseconds at p95.
  • For this exercise, acknowledged normalized transactions must survive a process or single-zone failure, while an external aggregator may be unavailable for several hours. For this exercise, a healthy secondary data center should restore authorized reads and durable ingestion admission within five minutes after active-center loss when safe authority transfer is possible; otherwise expose the explicit degraded state and preserve correctness.
  • For this exercise, assume providers enforce per-provider quotas, provider cursors advance only after every update in a fetched page is durably admitted, and recovery may reread a bounded overlap or backfill window within a candidate-stated rate budget.