Volume 12 · Chapter 4 — System Design Case Studies

Case Study: High-Scale Digital Banking Platform

Goutham Mayaluri 8 min read AWSCloudSystem DesignBanking

4.1 The Problem and Requirements

Design the customer-facing digital banking platform - the web and mobile experience millions of customers use to check balances, view transactions and statements, make payments, and manage accounts. Requirements: functionally, serve account and transaction data, support payments (via the payment system), and handle account management. Non-functionally, it must handle a very large user base with high, spiky read traffic (far more reads - balance and statement views - than writes), deliver low latency globally, be highly available, and be secure. The defining characteristic is read-heavy scale for a huge user base, which shapes the design toward aggressive read scaling and a clean separation of the read and write paths.

4.2 High-Level Architecture

Clients (web, mobile) hit CloudFront (serving static assets and cacheable content from the edge, with a WAF) and an API gateway that authenticates, rate-limits, and routes to stateless microservices - accounts, transactions, payments, profile - running in Auto Scaling groups across AZs, often with a backend-for-frontend tailoring responses per client. Read-heavy data is served through a caching layer and read replicas; the authoritative data lives in the relational system of record, with high-scale simple-access data (sessions, activity) in DynamoDB. Payments delegate to the payment system from Chapter 2. The design separates concerns into services and leans heavily on caching and replicas for the dominant read traffic.

flowchart TB
  Clients((Web / Mobile - millions)) --> Edge[CloudFront + WAF]
  Edge --> GW[API Gateway - auth, rate limit]
  GW --> BFF[Backend-for-frontend]
  BFF --> Acc[Accounts svc]
  BFF --> Txn[Transactions svc]
  BFF --> Pay[Payment system - Chapter 2]
  Acc & Txn --> Cache[(Cache - hot reads)]
  Acc & Txn --> RR[(Read replicas)]
  RR --> Primary[(Relational system of record)]
  BFF --> Ddb[(DynamoDB - sessions/activity)]

4.3 Scaling the Read Path

Because the workload is overwhelmingly reads, the read path gets the most attention. A caching layer (ElastiCache) serves hot, stable data - reference data, profile attributes, precomputed views - in sub- milliseconds, absorbing the bulk of read traffic. Read replicas offload read queries (balance and statement lookups) from the primary, which handles writes. CloudFront caches static and cacheable content at the edge, serving millions of users from nearby with low latency and offloading the origin. The services are stateless and scale horizontally to handle request volume. This layered read scaling - edge cache, in-memory cache, read replicas - is what lets the platform serve a huge user base cost-effectively, keeping the primary database for writes and the authoritative reads that need it.

4.4 Consistency and the Balance Problem

A key design nuance is which reads can be served from caches and replicas (accepting slight staleness) and which must be authoritative. Most reads - viewing past transactions, statements, profile - tolerate slight staleness, so they’re served from caches and replicas for scale. But a balance used to authorize a payment must be exactly correct, so that authoritative read comes from the source of truth, not a cache or lagging replica. This is the same principle from the data and support volumes: deliberately route freshness-critical reads to the primary and scale the rest with caching and replicas. Getting this boundary right - most reads scaled, correctness-critical reads authoritative - is central to a design that is both massively scalable and correct where it must be.

4.5 Availability, Security, and Trade-Offs

Availability: everything runs multi-AZ with Auto Scaling and automatic failover, and the read scaling also adds resilience (many replicas and cache nodes). For a global user base, CloudFront brings content close, and multi-Region could be added for Region-level resilience or global latency if required (Chapter 6). Security: the platform authenticates every request at the gateway with strong auth (MFA, tokens), runs services in private subnets with IAM roles and encryption, and shields the origin behind CloudFront and a WAF. Observability tracks the golden signals per service and key business metrics. The main trade-offs: eventual consistency on the scaled reads (accepted for everything except correctness-critical reads), and the complexity of many services and caching layers (justified by the scale) - with the read/write and cached/authoritative separations being the defining decisions.

4.6 Banking Production Notes

In production, this platform serves millions of customers’ balance checks, statement views, and account management with low latency, absorbing spiky read load through edge and in-memory caching and read replicas, while the primary database handles writes and authoritative reads. Payments delegate to the dedicated payment system, keeping money movement correct. The platform stays available across AZs and shields sensitive systems behind the edge and private networking. It composes the payment and (via events) fraud systems from the previous cases into the customer-facing whole - illustrating how a large banking platform is assembled from the composable building blocks, with read scaling as its defining engineering challenge.

4.7 Troubleshooting the Design

Digital-platform design weaknesses cluster around the read path and consistency. Not caching or using read replicas would overload the primary under read-heavy load - add layered read scaling. Serving a payment- authorizing balance from a cache or lagging replica risks using stale data - route that authoritative read to the primary. Stateful services would prevent horizontal scaling - keep services stateless with state externalized. Serving everything from the origin instead of the edge would add latency and load - use CloudFront. Exposing services directly instead of behind a gateway would lose centralized auth and rate limiting - use the gateway. The design’s essence is aggressive layered read scaling (edge cache, in-memory cache, read replicas), stateless services across AZs, and a deliberate boundary between scaled eventually-consistent reads and authoritative reads.

Interview Question

Design a digital banking platform for millions of users. What dominates the design?

What dominates the design is read-heavy scale for a huge user base: millions of customers checking balances, viewing transactions and statements, and managing accounts generate far more reads than writes, with spiky load and a need for low latency globally, high availability, and strong security - so the architecture leans heavily on aggressive read scaling and a clean separation of read and write paths. The high-level design: web and mobile clients hit CloudFront, which serves static and cacheable content from the edge with a WAF, then an API gateway that authenticates, rate-limits, and routes to stateless microservices - accounts, transactions, profile, payments - in Auto Scaling groups across Availability Zones, often with a backend-for-frontend tailoring responses per client. Payments delegate to the dedicated payment system. Because the workload is overwhelmingly reads, the read path gets the most attention: a caching layer serves hot, stable data - reference data, profiles, precomputed views - in sub-milliseconds and absorbs the bulk of read traffic; read replicas offload balance and statement lookups from the primary, which handles writes; and CloudFront caches content at the edge so millions of users are served from nearby with low latency while the origin is offloaded. The stateless services scale horizontally for request volume, and high-scale simple-access data like sessions goes in DynamoDB. This layered read scaling - edge cache, in-memory cache, read replicas - is what lets the platform serve a huge user base cost-effectively. A key nuance is consistency: most reads, like viewing past transactions or statements, tolerate slight staleness so they’re served from caches and replicas for scale, but a balance used to authorize a payment must be exactly correct, so that authoritative read comes from the source of truth, not a cache or lagging replica - deliberately routing freshness-critical reads to the primary while scaling the rest. For availability, everything is multi-AZ with Auto Scaling and automatic failover, and the read scaling adds resilience; multi-Region could be added for Region-level resilience or global latency if required. For security, every request is authenticated at the gateway with strong auth like MFA and tokens, services run in private subnets with IAM roles and encryption, and the origin is shielded behind CloudFront and a WAF. The main trade-offs I’d name are accepting eventual consistency on the scaled reads - fine for everything except correctness-critical reads - and the complexity of many services and caching layers, justified by the scale. So what dominates is read-heavy scale, and the defining decisions are layered read scaling with caching and replicas, stateless services across AZs, and the deliberate boundary between scaled eventually-consistent reads and authoritative reads for correctness - which makes the platform massively scalable while staying correct where it must be.

Chapter Revision Notes

  • Read-heavy scale for a huge user base dominates - far more reads (balances, statements) than writes, with spiky load and global low latency.
  • Layered read scaling: CloudFront edge cache, ElastiCache in-memory cache, and read replicas absorb read traffic; the primary handles writes.
  • Stateless microservices in Auto Scaling groups across AZs behind an API gateway and backend-for-frontend; DynamoDB for sessions/activity.
  • Consistency boundary: scale most reads via cache/replicas (tolerate staleness); route the payment-authorizing balance to the source of truth.
  • Trade-offs: eventual consistency on scaled reads (accepted except where correctness-critical) and multi-service/caching complexity (justified by scale).