A Data-Consistent Microservices Architecture Library using Saga Design Pattern and Backup Mechanism

被引:0
|
作者
Lee, Wen-Tin [1 ]
Song, Pinging-yi [1 ]
Tsai, Ming-Kai [1 ]
机构
[1] Natl Kaohsiung Normal Univ, Dept Software Engn & Management, Kaohsiung 824, Taiwan
关键词
microservice architecture; data consistent; saga; backup; cache;
D O I
10.6688/JISE.202501_41(1).0007
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
In recent years, the proliferation of complex applications has led to the emergence of microservices architecture as the preferred approach for developing large-scale applications. Consequently, numerous design patterns for microservice communication have evolved, with service orchestration gaining widespread acceptance as a standard solution in recent times. However, the data inconsistency issue caused by inter-microservice logic errors and unexpected server interruptions by the orchestrator during the orchestration process has become a significant challenge in the microservices architecture. This study delves into design patterns for microservice data consistency and develops the data consistency and backup library, Anser-Saga, which enables the creation of backups and restart points of distributed transaction states, ensuring eventual data consistency between microservice endpoints. Furthermore, it introduces a service backup mechanism to guarantee the orchestrator's ability to compensate and restart orchestration processes in the event of unforeseen abnormal failures, thereby ensuring the integrity of distributed transactions and achieving high availability of services. Through experimental design and case testing, comparisons and evaluations are conducted with existing solutions to ensure the performance and stability of the developed library in this study. The experiments confirm that the proposed Saga solution exhibits better performance and stability, enabling developers to implement highly available microservices architectural applications with distributed data consistency using the Anser-Saga library.
引用
收藏
页码:121 / 136
页数:16
相关论文
共 50 条
  • [21] Using the open library architecture (OLA) open source API in heterogeneous design flows
    Moritz, D
    PROCEEDING OF THE 2002 3RD INTERNATIONAL SYMPOSIUM ON QUALITY ELECTRONIC DESIGN, 2002, : 63 - 68
  • [22] Using Data Mining Tools, Microservices Architecture And Artificial Intelligence Modules For The "Juvenile Myoclonic Epilepsy JME-1000 Project"
    Discua, David
    Duron, Reyna M.
    Arias, Carlos
    Patterson, Christopher
    Viet-Huong Nguyen
    Martinez-Juarez, Iris E.
    Bailey, Julia N.
    Tanaka, Miyabi
    Ochoa, Adriana
    Jara-Prado, Aurelio
    Medina, Marco T.
    Alvarez, Evelyn
    Guilhoto, Laura
    Yacubian, Elsa Marcia
    Silva, Rene
    Delgado-Escueta, Antonio V.
    NEUROLOGY, 2019, 92 (15)
  • [23] Design of bus-type parallel computing architecture and data precision synchronization mechanism
    Zhou, Rougang
    Cheng, Xin
    Zhou, Yunfei
    Liu, Guangdou
    Huazhong Keji Daxue Xuebao (Ziran Kexue Ban)/Journal of Huazhong University of Science and Technology (Natural Science Edition), 2013, 41 (12): : 24 - 28
  • [24] Data access architecture in object oriented applications using design patterns
    Matic, D
    Butorac, D
    Kegalj, H
    MELECON 2004: PROCEEDINGS OF THE 12TH IEEE MEDITERRANEAN ELECTROTECHNICAL CONFERENCE, VOLS 1-3, 2004, : 595 - 598
  • [25] Dialogue Act Recognition using Branch Architecture with Attention Mechanism for Imbalanced Data
    Wu, Mengfei
    Wang, Longbiao
    Si, Yuke
    Dang, Jianwu
    2021 12TH INTERNATIONAL SYMPOSIUM ON CHINESE SPOKEN LANGUAGE PROCESSING (ISCSLP), 2021,
  • [26] Data Structures for a Generic Software System using the Composite Design Pattern
    Nadschlaeger, Stefan
    Hofer, Daniel
    Jaeger, Markus
    Kueng, Josef
    PROCEEDINGS OF THE EUROPEAN CONFERENCE ON PATTERN LANGUAGES OF PROGRAMS 2021, EUROPLOP 2021, 2021,
  • [27] Influence Mechanism of School Commuting Pattern Using Metro Smart Card Data
    Liu Y.
    Ji Y.-J.
    He M.
    Gu Y.
    Jiaotong Yunshu Xitong Gongcheng Yu Xinxi/Journal of Transportation Systems Engineering and Information Technology, 2019, 19 (01): : 132 - 137
  • [28] A Model Architecture for Public Transport Networks Using a Combination of a Recurrent Neural Network Encoder Library and a Attention Mechanism
    Reich, Thilo
    Hulbert, David
    Budka, Marcin
    ALGORITHMS, 2022, 15 (09)
  • [29] Under storage constraints of epidemic backup node selection using HyMIS architecture for data replication in mobile peer-to-peer networks
    Mavromoustakis, Constandinos X.
    Karatza, Helen D.
    JOURNAL OF SYSTEMS AND SOFTWARE, 2008, 81 (01) : 100 - 112
  • [30] Data analysis for nano-material’s design by using diffraction pattern
    David Ramirez Ramirez
    Teodoro Cordova Fraga
    Christian Gómez Solis
    Delia Irazú Hernández Farías
    Applied Physics A, 2022, 128