Redirigiendo al acceso original de articulo en 23 segundos...
Inicio  /  Applied Sciences  /  Vol: 12 Par: 12 (2022)  /  Artículo
ARTÍCULO
TITULO

Enhancing Saga Pattern for Distributed Transactions within a Microservices Architecture

Eman Daraghmi    
Cheng-Pu Zhang and Shyan-Ming Yuan    

Resumen

The saga pattern manages transactions and maintains data consistency across distributed microservices via utilizing local sequential transactions that update each service and publish messages to trigger the next ones. Failure by one transaction causes the execution of compensating transactions that counteract the preceding one. However, saga lacks isolation, meaning that reading and writing data from an incomplete transaction is allowed. Therefore, this research proposes an enhanced saga pattern that resolves the lack of isolation issue via the use of the quota cache and the commit-sync service. Some transactions will be transferred from the database layer to the memory layer. Thus, no wrong commit to the main database will occur. If a microservice fails to be completed, the other microservices will run compensation transactions to rollback the changes that only affect the cache layer instead of the database layer. Database commit will be performed when all transactions are completed successfully. A lightweight microservices-based e-commerce system was implemented for comparison. Experiments were conducted for validation and evaluation. Results demonstrate that the proposal has the capability of resolving the lack of isolation. Results indicate that the proposal achieves better performance not only in typical cases but also in the scenario that needs to handle exceptions.

 Artículos similares

       
 
Yongbo Jiang, Gongxue Sun and Tao Feng    
With the increasing value of various kinds of data in the era of big data, the demand of different subjects for data transactions has become more and more urgent. In this paper, a blockchain-based data transaction protection scheme is proposed to realize... ver más
Revista: Information

 
Rudi aldo,Agustina Mutia,Muhammad Nazori     Pág. 47 - 55
This study discusses implementing Islamic business ethics in micro, small and medium enterprises (MSMEs) in Jambi City. This research is a qualitative descriptive study, with data collection methods, namely interviews, observation, and documentation, and... ver más

 
Rasoul Amirzadeh, Asef Nazari and Dhananjay Thiruvady    
The total capital in cryptocurrency markets is around two trillion dollars in 2022, which is almost the same as Apple?s market capitalisation at the same time. Increasingly, cryptocurrencies have become established in financial markets with an enormous n... ver más
Revista: Algorithms

 
Mohamed Torky, Tarek Gaber, Essam Goda, Vaclav Snasel and Aboul Ella Hassanien    
Blockchain has found many applications, apart from Bitcoin, in different fields and it has the potential to be very useful in the satellite communications and space industries. Decentralized and secure protocols for processing and manipulating space tran... ver más
Revista: Aerospace

 
Oleh Kolodiziev,Aleksey Mints,Pavlo Sidelov,Inna Pleskun,Olha Lozynska     Pág. 14 - 26
Data on global financial statistics demonstrate that total losses from fraudulent transactions around the world are constantly growing. The issue of payment fraud will be exacerbated by the digitalization of economic relations, in particular the introduc... ver más