KatInterview

Designing a Scalable Backend for Credit Card Processing

System DesignModel answer
MediumModel answerSystem Designsystem-designfintechevent-driven

Last updated

Design a scalable backend architecture for a card issuer handling real-time payment processing, fraud detection, ledger management, credit limits, and credit bureau batch exports.

Design the core backend architecture for a digital credit card issuance and processing platform.

Requirements

The system must support the following primary capabilities:

  1. Authentication & Access: Secure login for cardholders across mobile and web channels.
  2. Real-Time Payment Processing & Fraud Analysis: Handle incoming authorization requests from payment networks (e.g., Visa/Mastercard) and render an approve/decline decision in under 50–100ms after applying real-time fraud scoring and balance checks.
  3. Account Dashboard & Spending Insights: Provide customers with near-real-time visibility into current balances, pending holds, posted transactions, and categorized spend history.
  4. Instant Credit Limit Adjustment: Allow cardholders to request a credit limit increase via the app and receive an immediate automated underwriting decision.
  5. Credit Bureau Reporting: Generate and publish monthly snapshot files summarizing account statuses and balances to major credit reporting agencies.

Guidance

Begin by establishing core data entities, system boundaries, and overall architectural topology. Detail key write and read flows, then perform targeted deep dives on critical sub-components (such as authorization paths, idempotency, or ledger consistency). State your operational scale assumptions clearly.

Hints

Hint 1

Separate the critical write path (payment authorizations) from heavy read/analytics queries using CQRS or CDC pattern.

Hint 2

Ensure the authorization flow uses strict latency budgets with safe fallback defaults (e.g., stand-in processing / degraded mode) if the ML fraud service times out.

Hint 3

Design the transaction ledger as an immutable double-entry journal to guarantee strict financial accounting standards.