Reliable Distributed Transactions in Microservices-Based Payment Systems: Consistency, Fault Tolerance, and Scalability

Authors

  • Divya Dadlani

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

Download data is not yet available.

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

28.02.2022

How to Cite

Divya Dadlani. (2022). Reliable Distributed Transactions in Microservices-Based Payment Systems: Consistency, Fault Tolerance, and Scalability. International Journal of Intelligent Systems and Applications in Engineering, 10(1s), 498–511. Retrieved from https://ijisae.org/index.php/IJISAE/article/view/8476

Issue

Section

Research Article