Design and Implementation of a Protocol for the SagaMAS Framework to Manage Distributed Transactions in Microservices Architecture

Main Article Content

Samuel Lungu
Mayumbo Nyirenda

Abstract

SagaMAS is a framework that integrates multi-agent sys- tems (MAS) with microservices to coordinate long-lived dis- tributed transactions. While its original formulation laid out the architectural vision, it deferred the formal specification of its transaction protocol. This paper addresses that gap by defining the SagaMAS protocol through six core rules: initiation, commit-then-report, dependency management, time- outs and retries, compensation, and termination without global commit. The protocol is formally specified in PROMELA and verified using the SPIN model checker against safety, liveness, and responsiveness properties. Verification results confirm that SagaMAS avoids deadlocks, maintains safety, and guarantees eventual termination. By contributing a formally verified transaction protocol, this work reinforces the Saga- MAS framework and lays the foundation for future empirical benchmarking against established orchestration platforms such as Axon Framework, Eventuate Tram, and Netflix Conductor.

Article Details

How to Cite
Lungu, S., & Nyirenda, M. (2025). Design and Implementation of a Protocol for the SagaMAS Framework to Manage Distributed Transactions in Microservices Architecture. Proceedings of International Conference for ICT (ICICT) - Zambia, 7(1), 136–155. Retrieved from https://ictjournal.icict.org.zm/index.php/icict/article/view/466
Section
Articles