HTAP Summit 2024 session replays are now live!Access Session Replays

The client is a leading bank with over 200 branches worldwide dedicated to providing professional and comprehensive financial services. It is proudly ranked within the Top 150 banks by Tier 1 capital on The Banker (TB) 2024 global list. 

With the rapid expansion of electronic channels, customers increasingly demand the convenience and superior experience of detailed transaction history queries. Catering to such personalized needs makes the historical bank statement query service emerge as a key business system server across various customer touch points. 

The Challenge: Data Processing Flexibility and Efficiency

The first generation of the historical statement query architecture involved replicating detailed data from the core Oracle accounting system to partitioned tables within another Oracle cluster. Core interfaces queried the historical statement cluster by date, utilizing existing resources to initiate operations swiftly and meet basic statement query needs. 

However, as data volumes surged and business requirements evolved, performance bottlenecks in complex queries emerged, slowing responses under high concurrency. The lack of data preprocessing compromised flexibility and efficiency, creating difficulty in adapting to personalized business scenarios.

Transition to Second-Generation Architecture

The second-generation architecture shifted to a big data technology stack to resolve these issues. Using offline ETL processes to sync data to a big data platform, Hive aggregated summary and detailed tables before importing data into Elasticsearch and HBase. 

Elasticsearch served as a full-text search engine for rapid text information retrieval, while HBase, a NoSQL database, stored structured data. Combining Elasticsearch for querying and HBase for storing complete records by keys solved the rapid query challenge for massive data volumes.

Compared to the first-generation architecture, this second-gen system is decoupled from the core. It migrates and further processes core statement data, operating without the limitations of the core framework. It leveraged offline data processing to replace real-time summary calculations and joins in online environments.

Challenges Still Exist

Despite advancements, the second-generation architecture couldn’t handle transaction queries on the same day since it used offline data. Integrating core interfaces to accommodate real-time business requirements necessitated querying current-day data and merging it with T-1 data for real-time responses. Additionally, the big data cluster shared resources with other services, causing potential performance issues due to resource contention, highlighting the need for further optimization.

The Solution: Next Generation of Bank Statement Query Architecture

In the latter half of 2023, the bank implemented TiDB, an open-source distributed SQL database, to develop a cutting-edge architecture for querying historical bank statements. This new system relies on TiDB’s native distributed database technology. It features an active-active deployment strategy within the same city, utilizing two copies at each of the two central data hubs and four TiKV storage nodes. 

This configuration ensures robust synchronization across data centers. The result is a solution offering financial-grade data consistency, zero data loss, high processing speed, and minimal latency, significantly bolstering system availability and scalability for future growth.

Next Generation of Bank Statement Query Architecture

TiDB Capabilities and Enhancements 

TiDB’s architecture supports complex, multi-condition queries that integrate various parameters, such as account numbers, transaction dates, transaction types (debit/credit), transaction codes, transaction amounts, and serial numbers. This flexibility significantly enriches the customer experience by allowing detailed, tailored transaction history queries.

Moreover, the system provides unified and standardized services for querying historical statement details across all customer interaction channels. This integration enhances the efficiency of business operations and streamlines data handling, making it easier to manage and retrieve historical financial information across the bank’s expansive network.

The Results

  • Improved System Performance and Response Times: Utilizing TiDB alongside upgraded Platform-as-a-Service (PaaS) layer capabilities, the average response time for core historical statement query interfaces was reduced from 90 milliseconds to under 50 milliseconds—achieving a performance boost of over 44%.
  • Extended Query Date Ranges for Mobile Banking Channels: The new system allows for an extended date range for single transaction queries via mobile banking and other channels, supporting spans of up to five years. This enhancement allows customers to access transaction data from the inception of the first-generation core system to the present day, offering greater flexibility and depth in banking services.
  • High Availability Ensured by Same-City Disaster Recovery: The system’s deployment strategy—spanning two data centers and three applications with fully live data—ensures robust support for continuous business operations. This approach guarantees 24/7 availability, achieving a continuity rate of 99.99%.
  • Reduced Application Development Costs: By standardizing application development on SQL, the bank has eliminated the complexities associated with managing multiple heterogeneous data platforms. This simplification has not only lowered technical barriers but also significantly sped up the response cycle to meet business needs more efficiently.

TiDB’s innovative distributed database architecture does more than just solve traditional performance and scalability challenges. It also significantly enhances the user experience by offering fast, flexible, and reliable data query capabilities. By integrating this advanced technology, the bank maintains its position at the forefront of financial services, adeptly meeting the dynamic needs of its customers and ensuring ongoing operational continuity.

Elevate modern apps with TiDB.

Book a Demo