Volume 14 · Chapter 1 — Enterprise Software Architecture Case Study Encyclopedia
Banking Platform Architecture Case Studies
1.1 Introduction
This final volume applies everything from the preceding volumes to concrete, domain-specific case studies - the way architecture is actually practiced and interviewed. Each chapter takes a real enterprise domain, establishes its defining requirements, and works through a reference architecture and a key flow, showing how the patterns produce fitting designs. We open with banking, the most demanding domain, because its requirements - correctness, availability, auditability, security, and regulatory compliance - exercise nearly every architectural concern at once.
1.2 The Defining Requirements
A banking platform is shaped by non-negotiable requirements: transactions must be correct and durable (no double-spend, no lost money), the system must be highly available (a bank being down is a serious failure), every change must be auditable for regulators, security must be defense-in-depth, and it must scale to millions of customers. These requirements prioritize consistency and auditability for the core while reads scale separately.
1.3 Reference Architecture
flowchart TB
Ch["Customer channels (web/mobile/branch)"] --> GW["API Gateway + BFF\n(auth, rate limit)"]
GW --> Acc["Accounts Service"]
GW --> Pay["Payments Service"]
GW --> Cust["Customer Service"]
Pay --> Ledger[("Event-sourced Ledger\n(strong consistency)")]
Ledger -- "events (outbox)" --> Bus["Event Broker"]
Bus --> Proj["Projections"]
Proj --> Read[("Read models\n(eventually consistent)")]
Bus --> Risk["Risk / Compliance"]
Bus --> Notif["Notifications"] 1.4 Domain Decomposition and Modernization
The platform is decomposed by business capability - Accounts, Payments, Customer, Notifications, Risk/ Compliance - each owning its data. Modernizing a legacy core banking system is done incrementally with the strangler-fig pattern: wrap the legacy behind APIs, carve out bounded contexts, and migrate capability by capability while maintaining business continuity - never a risky big-bang rewrite of a system that moves money.
How would you modernize a legacy core banking platform without disrupting the business?
I’d use an incremental, evidence-driven strangler-fig approach, because a big-bang rewrite of a system that moves money and must stay available and auditable is unacceptably risky. First I’d run domain analysis to understand the business capabilities and draw bounded contexts - Accounts, Payments, Customer, Risk/Compliance - which reveals the seams for extraction. Then I’d put a facade in front of the legacy system (an API layer or gateway) so new and old can coexist behind a stable interface, and I’d migrate capability by capability: pick a bounded context, build the modern service with its own data, route that capability’s traffic to it while the legacy handles the rest, and repeat, gradually strangling the legacy until it can be retired. Throughout I maintain business continuity - the legacy keeps running until each piece is proven - and I keep data consistent during the transition using techniques like change data capture, events, and anti-corruption layers so the modern services are not contaminated by legacy models. I’d sequence the migration by business value and risk, often starting with a lower-risk context to build capability and confidence before tackling the transactional core, and I’d extract a service only when there’s a real reason (independent scaling, release cadence, or replacing a painful legacy component). Crucially, for the money-moving core I preserve strong consistency and auditability - often introducing an event-sourced ledger for the audit trail - while letting read-heavy experiences move to eventually consistent read models. I’d invest in automated testing, observability, and reconciliation so I can prove correctness at each step, and I’d keep rollback paths. The principle I’d stress is that banking modernization is a careful, incremental, capability-by-capability transformation that never compromises correctness, availability, or auditability, with each step independently valuable and reversible - not a heroic rewrite.
How do you reconcile strong consistency for money with the need to scale reads to millions of customers?
I split the system along that exact tension, keeping strong consistency where money moves and using eventual consistency where customers read, connected by events. The write core - the ledger and payment processing - is strongly consistent because correctness is non-negotiable: a wrong balance or a lost/ double transaction is unacceptable, so I use a strongly consistent (often event-sourced) store where account aggregates enforce funds rules atomically, operations are idempotent, and every change is durably recorded, accepting the lower availability under partition that strong consistency implies for this critical path. The read side - balances, statements, transaction history, dashboards - is high- volume and can tolerate a brief staleness, so I serve it from denormalized, eventually consistent read models built by projections from the ledger’s event stream, scaled independently with replicas and caching and a CDN, so reads never contend with or bottleneck the write core. The two are connected by reliably published events (via the transactional outbox), and I design the user experience around the small read-after-write gap - for example showing a transfer as “processing” until the projection catches up - rather than pretending reads are instantly consistent with writes. This gives me the best of both: correctness and auditability where it’s essential and independent, massive read scalability where it’s needed. I’d explicitly name the trade-off in an interview - strong consistency’s availability cost on the core, and the read model’s eventual-consistency window - and justify it by the banking requirements. The key architectural move is recognizing that “the bank” is not one consistency model but a strongly consistent core surrounded by eventually consistent, independently scalable read and reaction planes.
1.5 Case Study Outcome
The bank runs a strongly consistent, event-sourced ledger as its write core, with account and payment services enforcing correctness and auditability, while balances and statements are served from eventually consistent read models scaled independently. Risk, compliance, and notification services react to the transaction event stream. The legacy core is strangled incrementally, capability by capability, preserving continuity. The design is a direct synthesis of the banking requirements: correctness and auditability at the core, scalable availability at the edges.
Chapter Revision Notes
- Banking’s requirements - correctness, availability, auditability, security, compliance - drive the design.
- Strong consistency and event sourcing for the money-moving core; eventual consistency for reads.
- Decompose by business capability with data owned per service.
- Modernize legacy incrementally via strangler-fig, never big-bang, preserving continuity.