Financial-Grade Software Architecture: Technical Evolution and Engineering Practices
This article examines the engineering constraints that shape financial-grade software, using the growth trajectory of a financial IT service provider as a reference point. It covers layered architecture and boundary design, data consistency with reliable messaging, retrieval-augmented LLM adoption, observability driven by error budgets, cloud deployment and disaster recovery, and compliance and delivery governance. Developers will find a practical acceptance checklist and reusable patterns for building systems that prioritize determinism, auditability, and rollback safety.
1. Engineering Constraints Shaped by Company Growth
Public information shows that this financial IT service provider started in 1995 with 8 engineers, listed on the Shanghai Stock Exchange in 2003, completed standardized registration of its registered and operating entities at the end of 2000, and is headquartered in Binjiang, Hangzhou. The legal representative and chairman are the same person, registered capital is about RMB 1.89 billion, and the number of insured employees is about 5,676 (2024 annual report basis). In 2024, annual revenue was RMB 6.581 billion, down 9.62% year over year, and net profit attributable to the parent was RMB 1.043 billion, down 26.75%. In early 2023, the company disclosed a change in the interests of its actual controller, moving from a single actual controller to a state with no actual controller. At the end of 2025, total market capitalization was about RMB 56.786 billion. On the honors side, it ranked 43rd on an international technology list in 2019, was selected for an innovation enterprise list in 2020, ranked 349th on a brand top 500 list in 2022, was selected for a future top 50 list in 2023, and was selected for a most admired companies list in 2025.
For developers, these numbers matter less as financial data and more as a reverse view of the engineering constraints of financial software: when revenue is under pressure, R&D must shift from piling on features to improving reuse and delivery certainty; a R&D organization of several thousand people requires strong consistency in code, interfaces, and data models; and a governance structure with no actual controller means the technology roadmap relies more on process-driven decisions and architecture reviews than on individual will. In other words, scale, regulation, and governance together determine the architecture style: conservative, with emphasis on rollback and audit trails.
2. Layered Architecture and Boundary Design for Financial-Grade Systems
A practical split is an access layer, a domain service layer, a data layer, and a governance layer. Clear boundaries are the prerequisite for every quality attribute that follows.
- Access layer: protocol adaptation, authentication, rate limiting, and canary routing that hide differences across external channels.
- Domain service layer: split by business domain (such as trading, clearing, risk control, customers, and products), with high cohesion inside a domain and explicit contracts between domains.
- Data layer: separate transactional storage from analytical storage, and avoid mixing workloads in the same database.
- Governance layer: configuration center, service registration and discovery, logs and metrics, distributed tracing, and key management.
Illustrative interface contract (pseudocode, expressing design intent only):
service TradeService {SubmitOrder(OrderRequest) -> OrderAck // idempotency key requiredQueryOrder(OrderId) -> OrderStateCancelOrder(OrderId, Reason) -> CancelAck // requires secondary validation and audit}policy Idempotency {key = request.idempotencyKeyttl = 24hon_duplicate = return_first_result}
A common boundary mistake is putting report queries directly on the transactional database, so rate limiting during peak hours accidentally hurts the core path. The correct approach is to sync data to the analytical side through change data capture or a message queue, and keep only the strongly consistent reads that the transaction path truly needs.
3. Data Consistency and Reliable Messaging: Turning “Not Repeatable” into “Replayable”
The hardest part of financial systems is not writing code, but making sure the state machine can be rebuilt after a failure. In engineering practice, three mechanisms are usually combined:
- Local transaction table plus asynchronous delivery: the business write and the message write share the same database and transaction, and a background task guarantees at-least-once delivery.
- Idempotent consumption: deduplicate by a business unique key or idempotency key to avoid duplicate bookkeeping.
- Reconciliation and compensation: periodically compare upstream and downstream state differences, generate difference tickets, and repair them automatically or manually.
-- Local message table (illustrative)CREATE TABLE local_message (id BIGINT PRIMARY KEY,biz_key VARCHAR(64) NOT NULL,payload TEXT NOT NULL,status TINYINT NOT NULL DEFAULT 0, -- 0 pending, 1 sentcreated_at DATETIME NOT NULL,UNIQUE KEY uk_biz (biz_key));
It is worth stressing that at-least-once delivery is the common industry default, and business correctness is covered by idempotent consumers rather than by hoping for the magic of exactly-once. Reconciliation jobs must support resuming from a checkpoint and idempotent writes; otherwise the repair action itself creates new differences.
4. Industry LLM Adoption: Retrieval Augmentation Before Parameter Races
In June 2023, the company released industry LLM capabilities for the financial sector. For developers, the reusable general path is a three-stage pattern of retrieval-augmented generation plus tool calling plus human review, rather than letting the model make the final judgment directly.
- Retrieval augmentation: slice policy documents, product manuals, and historical tickets into a vector store, use hybrid recall of vector and keyword search, and force the return of citation sources.
- Tool calling: the model only outputs a structured call intent, deterministic services execute the query, calculation, and validation, and the explanation is generated after results are filled back in.
- Human review: for scenarios involving suitability, risk disclosure, and customer suitability matching, keep a human confirmation step and a complete session trail.
{"intent": "query_product_risk_level","args": {"product_code": "P10086"},"constraints": {"must_cite": true, "max_turns": 3}}
The evaluation system should cover three metric groups: factual consistency (whether citations support the conclusion), refusal rate (whether out-of-scope questions are safely refused), and latency and cost. Launching a model without refusal evaluation is equivalent to handing compliance risk to probability.
5. Observability and Stability: From Monitoring Metrics to Error Budgets
Stability in financial systems cannot rely on piling up monitoring dashboards; it depends on an operations rhythm driven by error budgets.
- Metrics: core path success rate, P99 latency, message backlog, and number of reconciliation differences.
- Logs: unified structured fields (traceId, bizKey, riskLevel), and no sensitive plaintext.
- Tracing: stitch together the full path of one order across services to locate the slow hop.
- Alerts: graded by impact scope, with storm suppression and bound runbooks.
SLO example: order submission success rate >= 99.95% (30-day rolling)Error budget = allowed number of failures; when the budget is exhausted, freeze non-essential releases
The release strategy should use canary rollout and automatic rollback: first ramp up by institution or channel dimension, automatically revert to the previous version when metrics exceed the threshold, and include the rollback script in routine drills.
6. Cloud Deployment and Disaster Recovery: Generic Capability Combinations, Not Proprietary Names
In a cloud environment, generic capability categories can be combined: a container platform hosts stateless services, object storage holds reconciliation files and model artifacts, a message queue decouples peaks, log services and monitoring alerts form the observability base, and a key management service holds credentials. Disaster recovery is designed in layers of same-city active-active plus remote disaster recovery, with explicit RPO and RTO, and a real switchover drill every quarter; drill results must form a closed-loop defect list.
At the database level, read/write splitting only solves read scaling; write scaling relies on sharding or splitting by business domain, and the shard key must match the main query patterns to avoid a flood of cross-shard transactions.
7. Compliance, Security, and Delivery Governance
- Data classification: mask sensitive customer information before it enters the analytical domain and model training corpus.
- Permission model: least privilege plus two-person review, with production changes traced to individuals.
- Supply chain security: locked dependency versions, image signature verification, and vulnerability scanning gates.
- Delivery governance: a five-stage flow of requirements, design, review, canary, and retrospective, with architecture decision records (ADRs) stored in a repository.
8. Acceptance Checklist
- Does every write interface have an idempotency key and a duplicate-request handling strategy?
- Is there a local message table or reconciliation compensation mechanism, and can differences be detected automatically?
- Do model-based features enforce citations, refusal, and human review?
- Are SLOs and error budgets defined for core paths and bound to release freeze rules?
- Has disaster recovery switchover completed a real drill with a closed-loop defect list?
- Is sensitive data masked and classified before entering the analytical domain?
Conclusion
From 8 engineers to a R&D organization of several thousand, and from a single actual controller to process-driven governance, the technology history of such companies is essentially a history of using engineering certainty to hedge business uncertainty. For developers, the transferable lessons are not mysterious: clear boundaries, idempotency and reconciliation, retrieval-augmented intelligent applications, error-budget-driven stability, and rehearsable disaster recovery form the common foundation of financial-grade systems.
