Future-Proofing Bank Core Systems: Distributed, Unitized & Cloud-Native Architecture Guide
This article analyzes key technical components across IaaS, PaaS, aPaaS, and SaaS layers for building bank core systems that remain viable for a decade, covering distributed transactions, service registry, config centers, messaging, caching, load balancing, hotspot engines, data aggregation, unitized routing, online engines, batch scheduling, file engines, and unified gateways, advocating for self-developed middleware over open-source dependencies.
Reading font
Distributed and Unitized Architecture: Necessity and Origins
Since 2017, small and medium banks began building Java-based core systems using service registration and discovery, labeled "distributed cores." Large banks followed, adopting Alipay's unitized architecture to handle hundred-million-scale customer data. IBM E880 servers (80 cores, 1TB RAM for Guizhou Rural Credit's 70M customers; 88 cores, 1TB RAM for Hebei Rural Credit's 100M customers) struggled despite extensive tuning. Unitized architecture also solves dual-data-center traffic balancing, as legacy downtown data centers cannot expand physically.
Terms like "unitized" were coined by Alibaba's predecessors to establish technical authority and sell services. Cloud vendors' marketing accelerates adoption, but blindly following trends is risky for systems with 10+ year lifecycles. A major internet giant's banking core team disbanded after two years (2018–2022), leaving clients in trouble. The goal is to clarify technical origins and essence for sound selection and planning.
Bank Core Systems: The Crown Jewel
Bank cores are the most standardized and demanding IT systems. Cloud-native architecture splits into IaaS (resource), PaaS (middleware, dev/ops components), SaaS (application), with aPaaS emerging between PaaS and SaaS.
IaaS Layer: Private Cloud Tailored to Enterprise
Private cloud IaaS virtualizes compute, storage, network for enterprise IT management; public cloud sells shared services. Large enterprises must own private clouds for long-term control: data security is paramount, public cloud utilization exceeds 90% (Shanghai region), and reserved instances negate cost savings. Top Chinese IaaS vendors: Huawei, Alibaba, Tencent. Alibaba's stack is mature but older; Huawei and Tencent build on OpenStack (Nova, Swift, Cinder, Neutron, Keystone, Glance, Metering, Heat, Trove). Nova schedules hypervisors; Neutron provides basic virtual networking; Overlay-based virtual routers/switches are more mature. Private cloud must integrate seamlessly with existing IT management — "tailored" construction is the only successful path.
PaaS Layer: Three Evolutionary Stages
Stage 1: One-click provisioning of middleware instances (MQ, distributed transactions, caches, DB proxies) via IaaS.
Stage 2: Unified runtime platforms integrating middleware, monitoring, ops components — e.g., Ant Financial SOFAStack, Tencent TSF, AWS BeanStalk.
Stage 3: aPaaS adds service orchestration, batch scheduling, parameter caching, distributed sequences, hotspot resources, data serving — becoming the foundation for next-decade large systems.
Service Registry
Essentially a service list manager. Pre-registry, hardware (F5) or software load balancers handled routing. Registry auto-registers services, syncs to consumer memory, keeps local file backup. AP vs CP modes; high-performance systems choose AP. Must support cross-unit sync, unit failover (e.g., switch when live instances drop below threshold), and O&M integration (query, modify, deregister APIs). Early registries registered interfaces (tens of thousands) causing scale issues; modern ones register IP:port, supporting hundreds of thousands of interfaces. Massive simultaneous startup is a key stress point.
Configuration Center
Technically identical to registry but manages business parameters. Open-source config centers are demo-grade: key-value only, no multi-param relationships, versioning, or cross-node consistency. Enterprise systems publish parameters by version; open-source tools fail at timely push, version consistency, complex JSON readability. Author's parameter cache sync (later) solves this. Enterprise config center needs multi-env/app management, import/export, O&M APIs for "detect-and-control" capability. Performance: 10k+ params, thousands of nodes, sub-second push with progress tracking.
Message Queue (MQ)
Async transactions use MQ; unitized architecture wraps traditional MQ for reliable messaging, distributed transaction messages, multi-unit/app/env management, routing. Functions: topic management, message query, retry/redelivery, queue depth, trace tracking. Financial scenarios persist messages for audit/reprocess. Open-source MQ ops consoles are weak; enterprise MQ must expose query/control APIs for unified O&M. Performance: broker latency <1ms; consumer latency <1ms with shallow queues.
Redis Cache
Redis 7.4 (March 2024) switched to SSPLv1/RSALv2, barring free commercial hosting — a wake-up call for "self-controllability." In large distributed/unitized systems (thousands of JVMs), Redis becomes a bottleneck, cannot achieve dual-active in同城双活, and network hops add 1-2ms latency, negating cache speed. Bank cores avoid Redis; instead use self-developed parameter cache sync pushing params directly into JVM memory for microsecond access. Redis is a 10-year-old product ill-suited for multi-center architectures. The closure warns us to build domestic product-grade open-source middleware ecosystems.
Load Balancing
Gateways, orchestration, registries also perform load selection. Pre-distributed era, L4/L7 LBs (F5, Nginx, SLB) were single points of failure. Service registry enables consumer-side direct P2P calls. L4 (IP/port) is simple, high-throughput (100k+ connections, 10k+ CPS, 100k+ QPS, <1ms latency). L7 (HTTP/HTTPS, content-based) is complex, ~5ms latency, ~1/10 L4 throughput. Over-engineering with L7 harms stability. In cloud-native, GSLB feeds gateway clusters. LB is the critical traffic control node; service governance is not a single product but rules + O&M system + LB APIs for dynamic rule adjustment.
Distributed Transactions
Must integrate with service orchestration. Modes: XA (too slow), AT (auto-reversal, logs SQL before/after, moderate performance), SAGA (DO/UNDO, eventual consistency, no isolation), TCC (Try/Confirm/Rollback, isolation via intermediate state). Major banks (CCB, ICBC, Postal Savings, CMBC) use SAGA; Alipay, Ping An, Sichuan Rural Credit use TCC. SAGA lacks isolation but can be mitigated (e.g., transfer-out before transfer-in). TCC is complex: intermediate state hard to define, Confirm often misused for business logic, requires SAGA fallback, high two-phase overhead. Simplicity equals reliability; large banks prefer SAGA.
"Don't Reinvent the Wheel" is a Fallacy
Internet firms live by "jungle law" — short lifecycles, rapid monetization. Large systems last ~10 years. Cost of deep open-source customization vs. ground-up development? Open-source upgrades, bug fixes, closure risks? Every enterprise has unique IT history, standards, team structures — open-source cannot fit perfectly. Large firms build or heavily customize wheels, often via outsourcing. Internet giants prefer zero-marginal-cost standard products. Bank core projects have already produced a full aPaaS/toolchain stack, but commercial IP, lack of copyright consensus, and product heaviness hinder open-sourcing.
aPaaS Layer: Solving New Problems in Unitized/Cloud-Native
PaaS components (10-year-old tech) cannot handle: cross-unit parameter sync, hotspot resources, timely cross-shard data aggregation, global unique increasing sequences, data-locality routing, rapid micro-service orchestration for online/batch, file-to-online conversion, protocol/format translation for online/message/file transactions.
Parameter Cache Sync
Distributed/unitized splits one system into many clusters, multiplying nodes 10-100x. DB connections exhausted; Redis still needs network. Solution: push versioned params directly into each node's memory. Supports version publish/rollback/audit, gray release (by IP:port), O&M APIs. SDK intercepts DAO layer, auto-redirects to memory with 0.02ms query via custom indexing.
Distributed Sequence
Removing Oracle ("IOE") requires a distributed sequence generator. Oracle sequences are simple; domestic DB proxies lack performance, occasionally duplicate. Unitized throughput exceeds centralized, increasing demand. Service side batches sequences (start/end, step, prefix/suffix/infix) into dual-queue cache; consumer SDK pulls small batches into multi-queue local cache. Supports rules, monitoring, daily sequences, lucky numbers. Snowflake/UUID for non-increasing needs; workid allocation >1000 nodes. Per-unit sequence generation requires embedding unit ID in sequence — not suitable for "transparent to external" projects. Dual-queue (server) + multi-queue (client) design achieves sub-millisecond latency, 10x faster than Oracle, higher throughput.
Hotspot Resource Engine
Internet merchant accounts (e.g., Pinduoduo flash sales, investment product flash sales) create hotspot balance/limit problems. Traditional banks allowed overdrafts; internet merchants need anti-overdraft with explosive traffic. Three solutions: async (2k+ TPS), sharding (10k+ TPS), high-speed engine. Async separates contention check from value update: record trade, judge overdraft, async aggregate. Integrates with TCC (Try=check, Confirm=confirm, Cancel=rollback) or SAGA (DO=check, UNDO=reverse record). Sharding splits one hotspot into N sub-hotspots (e.g., 1000 → 10×100), random pick for deduction, periodic rebalance. Engine modules: sync, async, monitoring, parallel framework (token-bucket scheduler). SDK integration risks re-coupling; must keep generic.
Data Aggregation
When purchased DB lacked aggregation and big data couldn't meet second-level latency, a data aggregation product was built. Captures DAO-layer changes via SDK, async syncs to aggregation server, parses per template, stores in aggregated DB with configurable sharding. Near-zero impact on original trade; flexible per trade/table/action; seconds-level latency at thousands of TPS.
Unitized Routing
Originated in Alipay's unitization for shard location. Mainstream: hash customer ID → unit. Bank trades often lack customer ID; routing uses account, ID type/number, phone to find customer ID, then shard. Requires mapping tables (customer↔account, ID, phone) sharded in domestic DB. SDK (gateway, orchestration) + server (mapping sync, customer/account locks). Even with customer ID, all calls go through routing to support locks and migration. Single routing <5ms; batch multi-party routing in one call.
Online Engine
Coined by IBM in Postal Savings distributed core. Core: flow control, distributed transaction, idempotency, journal. Now merging with visual orchestration, becoming a platform integrating all runtime components. However, many vendors lack platform-level design, cramming complex components (distributed locks, etc.) causing 80% of issues. Performance-critical: RPC communication, but distributed transaction commits (2-6ms each) consume 2/3 of latency. Future needs better architecture to reduce independent commits.
Batch Scheduling Engine
2018 Minsheng Tech: no precedent for distributed batch. Analyzed 70+ EOD jobs; adopted "batch-to-online" (collect dataset → wrap each record as request → trigger online trade). Spring Batch or XXL-JOB based. Features: job definition, unit-aware dispatch, state persistence, dependency/time/event scheduling, sharding (range, consistent hash, modulo, unit). Executor management for HA: registration, state tracking, O&M APIs (concurrency control, alerts) to prevent batch stealing online resources. Spring Batch lightweight but lacks detailed biz logs; trade-off between efficiency and auditability.
File Engine
Not a mere Spring Batch + file parse job. Deep banking heritage: payroll upload (encrypted Excel via CD/USB → teller → middleware → core), now also netbank, direct connect. Steps: upload, notify, parse+persist, header validation, body execution, result verification, receipt. Manages file types (templates, paths, header/body/tail handlers, priority, channel control) and batch instances (state, flow control, query). Concurrency control dynamic; batch-to-online must avoid starving online.
Unified Gateway
ESB fails with micro-service explosion. Online, message, file, outbound gateways share protocol conversion, mapping, auth, signature → unified gateway. Online gateway: conversion layer (protocol, mapping, response code, simple logic), interface management, service governance (rate limit, circuit break, degrade — interface-level, not service-level), access control, parameter mapping, routing, gray. Core: protocol/message conversion performance — 50-field conversion <5ms. Some parse only headers; bytecode-level extraction for extreme speed. TCP handshake overhead → long connections. Message gateway reuses online but handles consumption failures (biz vs gateway). Outbound gateway = reverse online + SDK. File gateway separate, co-deployed with file engine. Future: Service Mesh, but open-source demo Mesh insufficient for finance; domestic vendors must build.
SaaS Layer: SaaS-ifying Large Systems
SaaS offers near-zero marginal cost scaling — internet giants' favorite. But regulation, data security, high customization, complexity, safety, stability make bank core SaaS nearly impossible. Some "multi-tenant" attempts (e.g., a digital finance firm, a city commercial bank alliance) struggle. Technically, service orchestration, engineization, factoryization, layered management make SaaS feasible.
Service Orchestration: Visual flow editing, auto distributed transaction management → agile biz response.
Engineization: Limit engine, rule engine, hotspot engine — config-driven behavior changes.
Factoryization: Oracle FLEXCUBE's product factory let biz staff configure products in business language — true agility vs. dev agility. Domestic cores shifted from parameter-centric to product-centric design.
Adaptation (Anti-corruption) Layers: External interface adapter + persistence adapter decouple core logic from custom versions and data model changes.
Environment Encapsulation: AWS BeanStalk exemplifies intent-driven UX — hide complexity, provide defaults. Domestic tools overwhelm with menus/certifications.
Data Security: Ownership, management rights, usage rights must be separated. Encryption with keys held by data owner prevents manager misuse. Critical for public cloud SaaS.
Patience: Internet giant entered 2018, disbanded 2022 after one delivery. Private firm took 6 years for one 1.0 core. SaaS needs patient capital, not fail-fast mentality.
SaaS ≠ Public Cloud: Large firms can deploy on private cloud, expose via front-end systems. Industry/eco clouds can interconnect private clouds. Future SaaS will be predominantly private-cloud-based.
Foundational Theory for 10-Year Viability
Current "wind-driven" reconstruction fails for decade-long systems. Borrow evolutionary theory: "Entities act to preserve existence via external action and internal adjustment." Three modules needed: internal adjustment (parameterization, engines, visual orchestration, product factory), external output (data serving, aggregation, monitoring, self-check, outbound, efficiency/cost metrics), external input (gateways, Mesh, biz-tech integration for true agility). Human body: stable physiology, adaptable brain. Systems need rich internal adjustment knobs, precise external perception (competitor analysis), effective output (monitoring, downstream data). When param/flow changes can't meet needs, reflect and refactor (OO analysis). When most needs require code changes, system should retire. "Return to real business" when lost in IT logic.
For questions about attribution, corrections or content rights, please contactand we will review it promptly.