
Elevate modern apps with TiDB.
WeBank, China’s first digital-only bank, delivers inclusive financial services at scale, supporting millions of individual and SME customers across lending, deposits, risk control, and wealth management. Backed by Tencent and founded in 2014, the Shenzhen-based bank serves over 300 million users. With a fully cloud-native architecture and strong commitment to open-source innovation, WeBank has become one of the country’s most technologically advanced financial institutions.
To meet its demanding performance and reliability needs, WeBank adopted TiDB in 2019 as a foundational layer for mission-critical services. Today, TiDB powers over 80 clusters across multiple business lines, supporting petabytes of data and high-concurrency workloads. Its largest cluster handles over 200TB and 237K QPS, enabling real-time, data-driven operations across the bank.
This is an excerpt from a live sharing session by Mr. Huang Wei from WeBank’s database team during the TiDB Community event in Shenzhen.
As WeBank’s customer base and product offerings expanded, the limitations of its traditional database systems became increasingly apparent. The bank’s existing TDSQL architecture was built on single-instance, vertically scaled databases. It was well-suited for small-scale transactional workloads but struggled with capacity expansion, concurrency, and cost efficiency at scale. Scaling up often required disruptive, manual migrations and significant re-engineering efforts. Operations teams had to rely on disparate tools to troubleshoot issues, which made root cause analysis slow and reactive.
At the same time, the bank set ambitious availability goals. These included 99.999% uptime, zero data loss (RPO=0), and recovery times measured in seconds, which their current stack could not guarantee. WeBank needed a future-proof solution that could deliver performance, reliability, and manageability across distributed systems. Especially for mission-critical use cases like core accounting, batch archiving, and compliance reporting.
Prior to its TiDB deployment, WeBank used TDSQL for most business workloads, particularly those involving under 3TB of data. These were handled through a single-instance primary-secondary architecture. While stable and simple, this architecture lacked the flexibility to support fast-growing and data-intensive services. TiDB had already been deployed in select batch processing and data archiving scenarios but lacked integrated monitoring, diagnostic tools, and centralized control. There was no unified platform to manage large-scale distributed databases. Making it challenging to scale without increasing operational risk or overhead.
To address these challenges, WeBank adopted a dual-engine database architecture, combining TDSQL for smaller, simpler workloads and TiDB for high-volume, high-concurrency systems. TiDB’s horizontal scalability made it ideal for supporting data-intensive services like financial accounting, operational analytics, and risk management. Over a six-year period, WeBank expanded its TiDB deployment from 20 to over 80 clusters, managing more than 1.3 petabytes of data across nearly 1,000 servers. To ensure control and visibility at this scale, the database team built an in-house operations platform that integrates cluster management, slow query tracking, real-time diagnostics, and capacity forecasting.
Fig. 1: Dual engine database architecture using TDSQL and TiDB
The team introduced a capacity center that leverages predictive algorithms to estimate future storage needs and growth trends. This allowed them to plan expansions proactively while optimizing resource usage. They also built an intelligent diagnostics engine that automatically gathers logs, metrics, and performance snapshots when alerts are triggered. It delivers root cause analysis directly to the operations team without manual intervention.
Slow query logs were collected and aggregated in real time using an ELK-based stack, enabling immediate insights and anomaly detection. More than 50 automated inspection tasks were deployed to monitor everything from replication and backup health to security configurations and capacity thresholds. Together, these tools transformed the way WeBank manages distributed systems. It reduced incident response times, minimized false alarms, and enabled faster, more informed decision-making.
The new solution architecture centered around TiDB as the core platform for hybrid transactional and analytical workloads. TDSQL remained in use for lightweight systems, while TiDB handled large-scale services with varying degrees of complexity and concurrency. Prometheus and ELK were tightly integrated to provide end-to-end observability. TiDB’s compatibility with the MySQL protocol ensured a smooth migration path, and DM (Data Migration) was used to synchronize critical data across systems with strong consistency guarantees. This new architecture allowed WeBank to meet its operational and compliance requirements while delivering the performance and flexibility needed for continued innovation.
The results of WeBank’s TiDB implementation speak not only to technical performance, but to business transformation. With TiDB at the core of its distributed operations platform, WeBank has achieved the scale, reliability, and agility necessary to meet the demands of a digital-first, regulation-heavy banking environment.
Fig. 2: Intelligent diagnosis and slow query collection process for WeBank
Looking ahead, WeBank plans to deepen its integration with TiDB by migrating more core workloads from TDSQL to distributed SQL. With newer versions of TiDB supporting resource quotas and replica placement strategies, the team expects to fine-tune performance and cost at a more granular level. They are also exploring the use of TiDB’s vectorized execution engine for AI and advanced analytics, including integration with their in-house AI platform. Future enhancements will focus on increasing automation around upgrades and failovers, optimizing cross-data center deployments, and improving resource isolation in multi-tenant scenarios. These initiatives will ensure TiDB continues to evolve as a cornerstone of WeBank’s financial-grade infrastructure.
WeBank’s journey with TiDB demonstrates how a distributed SQL database can meet the most demanding standards of the modern banking industry. By combining strong consistency, horizontal scalability, and intelligent operations tooling, TiDB has helped WeBank build a resilient and future-ready architecture that supports both rapid business growth and regulatory compliance. As TiDB continues to evolve, it will play an even more critical role in powering the next generation of WeBank’s digital financial services.
Ready to see how TiDB can deliver financial-grade scale and reliability for your business? Get in touch with us today.
Elevate modern apps with TiDB.