Reliable Distributed Transactions in Microservices-Based Payment Systems: Consistency, Fault Tolerance, and Scalability
Keywords:
Microservices; Distributed Transactions; Payment Systems; Saga Pattern; Event-Driven Architecture; Fault Tolerance; Scalability.Abstract
The architectural paradigm that has emerged to be the preferable one when dealing with the current financial platforms is the microservices payment systems due to their flexibility, scaling ability, and speed in the deployment of services. Nonetheless, as a challenge, regular distributed transactions among self-deployed services has been quite difficult due to network failures, incomplete commits and data distortions and volume of transactions. It seems to me that in this paper, I would like to introduce the Reliable Distributed Transaction Framework (RDTF) that is a framework that unifies the Saga orchestration, event-driven communication, distributed transaction coordination, idempotent request handling, fault recovery and real-time monitor and offers consistency, fault tolerance, and scalability. It outlines an event sourcing and transactional outbox pattern, message brokers, distributed tracing and automated compensation to guarantee eventual consistency, as well as to ensure high availability of the system. More advanced resilience design methods like circuit breakers, retry policies, timeouts and health check improve fault recovery without having an impact on performance. Authentication, authorization, encrypted communications and audit logging are used to enhance security to ensure adherence to rules in financial settings. Experimental analysis supports the argument that the proposed framework is extremely critical to minimize the collapse of transaction, recover time throughput and consistency of state of transaction in case high-concurrency load is involved. The proposed RDTF can be a friendly and scalable scheme when it is founded on the trusted platforms of payment that are able to meet financial transactions in real time as well as meet the current demands of the enterprise on sincerity, constancy and craftiness.
Downloads
References
H. Garcia-Molina and K. Salem, "Sagas," in Proceedings of the 1987 ACM SIGMOD International Conference on Management of Data (SIGMOD '87), San Francisco, CA, USA, May 1987, pp. 249–259.
C. Richardson, Microservices Patterns: With Examples in Java. Shelter Island, NY, USA: Manning Publications, 2019.
M. Štefanko, O. Chaloupka, and B. Rossi, "The Saga Pattern in a Reactive Microservices Environment," in Proceedings of the 14th International Conference on Software Technologies (ICSOFT), Prague, Czech Republic, Jul. 2019, pp. 483–490.
A. Bucchiarone, N. Dragoni, S. Dustdar, P. Lago, M. Mazzara, V. Rivera, and A. Sadovykh, Microservices: Science and Engineering. Cham, Switzerland: Springer International Publishing, 2019.
W. Hasselbring and G. Steinacker, "Microservice Architectures for Scalability, Agility and Reliability in E-Commerce," in Proceedings of the 2017 IEEE International Conference on Software Architecture Workshops (ICSAW), Gothenburg, Sweden, May 2017, pp. 243–246.
P. Bailis and A. Ghodsi, "Eventual Consistency Today: Limitations, Extensions, and Beyond," Communications of the ACM, vol. 56, no. 5, pp. 55–63, May 2013.
H. Uyanik and T. Ovatman, "Enhancing Two Phase-Commit Protocol for Replicated State Machines," in Proceedings of the 2020 28th Euromicro International Conference on Parallel, Distributed and Network-Based Processing (PDP), Västerås, Sweden, Mar. 2020, pp. 118–121.
C. Mohan, B. Lindsay, and R. Obermarck, "Transaction Management in the R* Distributed Database Management System," ACM Transactions on Database Systems, vol. 11, no. 4, pp. 378–396, Dec. 1986.
X. Limón, A. Guerra-Hernández, Á. J. Sánchez-García, and J. C. P. Arriaga, "SagaMAS: A Software Framework for Distributed Transactions in the Microservice Architecture," in Proceedings of the 2018 6th International Conference in Software Engineering Research and Innovation (CONISOFT), San Luis Potosí, Mexico, Oct. 2018, pp. 50–58.
N. Narkhede, G. Shapira, and T. Palino, Kafka: The Definitive Guide: Real-Time Data and Stream Processing at Scale, 1st ed. Sebastopol, CA, USA: O'Reilly Media, 2017.
J. Kreps, "Kafka: A Distributed Messaging System for Log Processing," in Proceedings of the NetDB Workshop, Athens, Greece, 2011.
R. Petrasch, "Model-Based Engineering for Microservice Architectures Using Enterprise Integration Patterns for Inter-Service Communication," in Proceedings of the 14th International Joint Conference on Computer Science and Software Engineering (JCSSE), Nakhon Si Thammarat, Thailand, Jul. 2017, pp. 1–4.
Downloads
Published
How to Cite
Issue
Section
License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
All papers should be submitted electronically. All submitted manuscripts must be original work that is not under submission at another journal or under consideration for publication in another form, such as a monograph or chapter of a book. Authors of submitted papers are obligated not to submit their paper for publication elsewhere until an editorial decision is rendered on their submission. Further, authors of accepted papers are prohibited from publishing the results in other publications that appear before the paper is published in the Journal unless they receive approval for doing so from the Editor-In-Chief.
IJISAE open access articles are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. This license lets the audience to give appropriate credit, provide a link to the license, and indicate if changes were made and if they remix, transform, or build upon the material, they must distribute contributions under the same license as the original.


