Наука и технология в современном миреМирзаева Ширин Нодировна, Тахиров Чингиз Аъзамович +22026
Optimizing Distributed Transactions in Banking APIs: Saga Pattern vs. Two -Phase commit (2PC)
PAGE NO. - · Optimizing Distributed · Transactions in Banking · APIs: Saga Pattern vs. Two · Kishore Subramanya Hebbar · Exchange Inc.) · SUBMITED April
The American Journal of Engineering and Technology · 07 · 55–61 · 2025
Аннотация
As financial institutions increasingly migrate their core platforms to microservices-based architectures, the challenge of managing distributed transactions has gained critical importance. Banking APIs typically require atomicity and consistency across multiple services—such as account management, fraud detection, notifications, and audit trails all of which operate independently with isolated data stores. In such an ecosystem, ensuring consistency, performance, and fault tolerance becomes a balancing act that traditional and modern transaction patterns attempt to resolve differently. This paper explores and contrasts two dominant approaches to distributed transaction management: the Two-Phase Commit (2PC) protocol and the Saga Pattern , particularly in the context of mission-critical banking applications. 2PC has long been considered the gold standard for ensuring atomicity and strong consistency in distributed systems. However, its blocking nature, reliance on a centralized coordinator, and vulnerability to network partitions make it less suitable for high-throughput, globally distributed systems common in modern fintech platforms. On the other hand, the Saga Pattern, an eventual consistency model that orchestrates a sequence of local transactions with compensating rollback operations—offers better fault tolerance and non-blocking behavior. Yet, its trade-offs include the complexity of compensating logic, lack of strict ACID guarantees, and potential for data anomalies if not carefully implemented. To ground the discussion in real-world reliability needs, I introduce a chaos engineering-based simulation that demonstrates the behavior of both 2PC and Saga under controlled failure scenarios, such as inter-service latency spikes and partial service outages. We benchmark recovery times, resource locking, system availability, and data reconciliation behavior using a representative banking microservice architecture deployed in a containerized environment. My findings reveal that Saga outperforms 2PC in terms of availability and fault recovery, making it suitable for user-facing, latency-sensitive operations. However, 2PC remains superior for operations demanding immediate consistency and compliance with strict audit requirements, such as core ledger updates. Based on this analysis, we propose a hybrid transaction strategy that applies 2PC to core financial operations and Saga to surrounding auxiliary services, striking a balance between performance and correctness. This study offers practical design insights for architects building resilient, scalable, and regulation-compliant financial systems. It also highlights the need for adaptive orchestration platforms capable of dynamically selecting transaction models based on context and SLA requirements.
Доказательный фрагмент
«As financial institutions increasingly migrate their core platforms to microservices-based architectures, the challenge of managing distributed transactions has gained critical importance.»
Образец извлечения
Демо-превьюAs financial institutions increasingly migrate their core platforms to microservices-based architectures, the challenge of managing distributed transactions has gained critical importance. Полный текст публикации CiteX не хранит — доступ к первоисточнику открывается по DOI согласно лицензии издателя и выбранному плану.
- Цитирований
- 0
- Просмотров
- 0
- Тип
- Журнал
- Страна
- Узбекистан
- Ключевые слова
- terms of complexity, reconciliation logic, and delayed, CAP Theorem, Latency Optimization, Hybrid Transaction Strategy, Eventual Consistency, Chaos Engineering, Transactional Integrity, Strong Consistency, Financial Compliance, Saga Pattern, Fault Tolerance, Two-Phase Commit (2PC), Banking APIs, Resilient System Design, Distributed Transactions, Microservices Architecture
Смежные источники
ЖУРНАЛ ТЕХНИЧЕСКИХ ИССЛЕДОВАНИЙЭлмурод Сотволдиевич Умаров, Зиёдбек Шавкатович Халилов +12021
The American Journal of Applied sciencesUsmonova Manzura Isakovna, Umarova Nasiba Erkinovna +22021
The American Journal of Applied sciencesHydrogeological Conditions, J.X. Djumanov +22021