Cloud Native 20 min read

Ant Financial’s SOFA DTX: Scalable Open Financial Architecture for Distributed Transactions

The article explains how Ant Financial’s self‑developed SOFA middleware and its Distributed Transaction‑eXtended (DTX) solution provide a cloud‑native, financially‑grade distributed transaction framework that ensures strong consistency and high performance for massive e‑commerce and payment workloads.

AntTech
AntTech
AntTech
Ant Financial’s SOFA DTX: Scalable Open Financial Architecture for Distributed Transactions

SOFA (Scalable Open Financial Architecture) is Ant Financial’s self‑developed, financial‑grade distributed middleware that includes micro‑service frameworks, RPC, service registry, distributed scheduling, flow control, dynamic configuration, tracing, monitoring, high‑availability messaging, transaction management, and database proxy layers, forming a complete solution for cloud‑native architectures.

The core challenge addressed is strong data consistency for massive financial transactions; the article introduces DTX (Distributed Transaction‑eXtended), the only proven large‑scale financial‑grade distributed transaction solution that guarantees consistency across services and databases.

DTX combines two theoretical models: a BASE‑based TCC (Try‑Confirm‑Cancel) mode and an ACID‑based FMT (Framework‑Managed Transaction) mode, offering both flexibility and low‑intrusion integration for developers.

Through TCC, each business operation is split into Try, Confirm, and Cancel phases, ensuring that all participants either commit or roll back together; FMT automates the second‑phase logic, allowing near‑zero code changes while the framework generates the necessary SQL for commit and rollback.

DTX has demonstrated extreme scalability, handling 256,000 TPS during Double‑11 peaks, supporting over 100 internal systems, processing billions of daily transactions, and scaling horizontally across data centers without single points of failure.

The system achieves this by asynchronous (delayed) commits, near‑data placement, batch processing, and software‑only optimizations that treat underlying hardware as unreliable, thereby guaranteeing strong consistency even if lower‑level databases fail.

DTX also integrates with Ant Financial’s OceanBase distributed relational database, extending consistency across multiple database clusters and supporting heterogeneous back‑ends such as MySQL, Oracle, and OceanBase.

Beyond internal use, DTX (internally called XTS) has been externalized to partners and banks since 2014, offering the broadest coverage of financial services, proven high‑traffic performance, rapid theoretical evolution (including FMT and XA modes), and tailored consulting for digital transformation.

Overall, the article showcases how Ant Financial’s SOFA DTX combines cloud‑native design, rigorous engineering, and innovative transaction models to meet the unprecedented scale and consistency demands of modern financial systems.

— END —

Cloud NativeMiddlewareDistributed Transactionsfinancial technologySOFA
AntTech
Written by

AntTech

Technology is the core driver of Ant's future creation.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.