Frontiers in Emerging Computer Science and Information Technology

  1. Home
  2. Archives
  3. Vol. 2 No. 07 (2025): Volume02 Issue7 July
  4. Articles
Frontiers in Emerging Computer Science and Information Technology

Article Details Page

Architecting Transaction-Intensive Microservices: Saga-Based Distributed Transactions, Clean Boundaries, and Reactive Data Infrastructure

Authors

  • Elora Handerson Department of Computer Science, University of Milan, Milan, Italy

Keywords:

Microservice architecture, Saga pattern, distributed transactions

Abstract

Background:

Microservice architectures have become the dominant paradigm for high-scale, API-driven systems such as e-commerce platforms and digital banking backends, promising independent deployment, fine-grained scalability, and organizational alignment with business domains (Nadareishvili et al., 2016; Sharma, 2017). However, as monolithic applications are decomposed and data ownership is distributed across services, transaction management becomes significantly more complex. Workflows such as online shopping checkouts or banking fund transfers, which previously relied on local ACID transactions, now span many autonomous services, databases, and infrastructure components, including message brokers and caches (Stonebraker & Cattell, 2011; Narkhede et al., 2017; Hebbar, 2025).

Objective:

This article develops a comprehensive, theoretically grounded account of how to design transaction-intensive microservice architectures that reconcile distributed workflows, domain purity, and reactive data infrastructure. It focuses on the Saga pattern and its framework implementations, such as SagaMAS, in combination with clean architectural boundaries, Enterprise Integration Patterns (EIP), and streaming technologies like Kafka, Redis, RxJava, and PostgreSQL (Garcia-Molina & Salem, 1987; Limón et al., 2018; Petrasch, 2017; Narkhede et al., 2017; Nurkiewicz & Christensen, 2016; Douglas & Douglas, 2003). Banking APIs and e-commerce shopping flows are used as primary application contexts (Shopping Process, 2022; Hebbar, 2025).

Methods:

A qualitative, literature-based methodology is applied, structured in the spirit of systematic reviews in software engineering while remaining narrative and theory-building (Keele et al., 2007; Sedeño et al., 2019). Foundational texts on microservices, architecture, and simple-operation datastores are combined with systematic reviews on microservice deployment, security, and data management to form the architectural baseline (Nadareishvili et al., 2016; Martin, 2018; Stonebraker & Cattell, 2011; Karabey Aksakalli et al., 2021; Laigner et al., 2021; Berardi et al., 2022). Saga literature, including Hebbar’s banking-focused work and SagaMAS, is then interpreted in the context of real-time data pipelines and reactive programming (Limón et al., 2018; Stefanko, 2017; Hebbar, 2025; Narkhede et al., 2017; Nurkiewicz & Christensen, 2016). Practices from meta-surveys and systematic reviews in neighboring domains such as explainable AI, DDoS detection, and knowledge graphs inform the rigor of synthesis and the structuring of research gaps (Saeed & Omlin, 2023; Mittal et al., 2022; Tiwari et al., 2021).

Results:

The synthesis shows that Saga-based approaches are structurally better aligned with microservice principles than classical distributed transactions, particularly in domains where workflows cross bounded contexts and infrastructure tiers (Nadareishvili et al., 2016; Garcia-Molina & Salem, 1987; Hebbar, 2025). Clean architecture principles, when combined with REST rulebooks and EIP-based integration, provide a way to isolate Saga orchestration from domain logic and infrastructure concerns, enhancing maintainability and testability (Martin, 2018; Mass, 2012; Petrasch, 2017; Walls, 2016). Kafka, Redis, RxJava, and PostgreSQL form a powerful yet non-trivial substrate for implementing Saga coordination, outbox and inbox patterns, and idempotent processing in transactional flows (Narkhede et al., 2017; Redis, 2022; Nurkiewicz & Christensen, 2016; Douglas & Douglas, 2003). However, the analysis also reveals significant challenges in security, deployment topology, multi-datastore consistency, and observability, underscoring the need for domain-sensitive patterns and framework support (Karabey Aksakalli et al., 2021; Laigner et al., 2021; Berardi et al., 2022; Limón et al., 2018).

Conclusion:

For transaction-intensive microservice systems in banking and e-commerce, Saga-based distributed transactions, implemented via specialized frameworks and embedded in clean, domain-centric architectures, offer a robust path toward balancing consistency, scalability, and organizational autonomy. Yet this path is not purely technical; it demands disciplined modeling of compensations, cross-cutting security controls, deployment-aware data strategies, and a culture capable of reasoning about eventual consistency and asynchronous workflows (Vogels, 2009; Hebbar, 2025; Laigner et al., 2021). The article outlines a research agenda calling for deeper empirical studies on Saga frameworks, cross-datastore strategies, and explainable observability for highly distributed transactional flows.

References

Berardi, D., Giallorenzo, S., Mauro, J., Melis, A., Montesi, F., & Prandini, M. (2022). Microservice security: A systematic literature review. PeerJ Computer Science, 7, e779.

Douglas, K., & Douglas, S. (2003). PostgreSQL: A Comprehensive Guide to Building, Programming, and Administering PostgreSQL Databases (1st ed.). Sams.

Garcia-Molina, H., & Salem, K. (1987). Sagas. ACM SIGMOD Record, 16(3), 249–259.

Hebbar, K. S. (2025). Optimizing distributed transactions in banking APIs: Saga pattern vs. two-phase commit (2PC). The American Journal of Engineering and Technology, 7(06), 157–169. https://doi.org/10.37547/tajet/Volume07Issue06-18

Karabey Aksakalli, I., Çelik, T., Can, A. B., & Tekinerdogan, B. (2021). Deployment and communication patterns in microservice architectures: A systematic literature review. Journal of Systems and Software, 180, 111014.

Keele, S., et al. (2007). Guidelines for Performing Systematic Literature Reviews in Software Engineering.

Laigner, R., Zhou, Y., Salles, M. A. V., Liu, Y., & Kalinowski, M. (2021). Data management in microservices. Proceedings of the VLDB Endowment, 14, 3348–3361.

Limón, X., Guerra-Hernández, A., Sánchez-García, Á. J., & Arriaga, J. C. P. (2018). SagaMAS: A software framework for distributed transactions in the microservice architecture. In 2018 6th International Conference in Software Engineering Research and Innovation (CONISOFT) (pp. 50–58). IEEE.

Luckow, A., Lacinski, L., & Jha, S. (2010). SAGA BigJob: An extensible and interoperable pilot-job abstraction for distributed applications and systems. In 2010 10th IEEE/ACM International Conference on Cluster, Cloud and Grid Computing (pp. 135–144). IEEE.

Martin, R. C. (2018). Clean Architecture: A Craftsman’s Guide to Software Structure and Design. Prentice Hall.

Mass, M. (2012). REST API Design Rulebook. O’Reilly.

Mittal, M., Kumar, K., & Behal, S. (2022). Deep learning approaches for detecting DDoS attacks: A systematic review. Soft Computing, 27, 13039–13075.

Nadareishvili, I., Mitra, R., McLarty, M., & Amundsen, M. (2016). Microservice Architecture: Aligning Principles, Practices, and Culture. O’Reilly Media.

Narkhede, N., Shapira, G., & Palino, T. (2017). Kafka: The Definitive Guide: Real-Time Data and Stream Processing at Scale (1st ed.). O’Reilly Media.

Nurkiewicz, T., & Christensen, B. (2016). Reactive Programming with RxJava: Creating Asynchronous, Event-Based Applications (1st ed.). O’Reilly Media.

Petrasch, R. (2017). Model-based engineering for microservice architectures using Enterprise Integration Patterns for inter-service communication. In 2017 14th International Joint Conference on Computer Science and Software Engineering (JCSSE) (pp. 1–4). IEEE.

Redis. (2022). Redis. Retrieved from https://redis.io/

Saeed, W., & Omlin, C. (2023). Explainable AI (XAI): A systematic meta-survey of current challenges and future opportunities. Knowledge-Based Systems, 263, 110273.

Sedeño, J., Vázquez, G., Escalona, M. J., & Mejías, M. (2019). The systematic discovery of services in early stages of agile developments: A systematic literature review. Journal of Computer and Communications, 7, 114–134.

Sharma, U. R. (2017). Practical Microservices (1st ed.). Packt Publishing.

Shopping Process. (2022). Shopping process. Retrieved from https://www.books.com.tw/web/sys_qalist/qa_1_2/0?loc=000_002

Stefanko, M. (2017). Saga implementations comparison. Retrieved from http://jbossts.blogspot.cz/2017/12/sagaimplementations-comparison.html

Stonebraker, M., & Cattell, R. (2011). 10 rules for scalable performance in “simple operation” datastores. Communications of the ACM, 54(6), 72–80.

Tiwari, S., Al-Aswadi, F. N., & Gaurav, D. (2021). Recent trends in knowledge graphs: Theory and practice. Soft Computing, 25, 8337–8355.

Vogels, W. (2009). Eventually consistent. Communications of the ACM, 52(1), 40–44.

Walls, C. (2016). Spring Boot in Action. Manning Publications.

Downloads

Published

2025-07-31

How to Cite

Elora Handerson. (2025). Architecting Transaction-Intensive Microservices: Saga-Based Distributed Transactions, Clean Boundaries, and Reactive Data Infrastructure. Frontiers in Emerging Computer Science and Information Technology, 2(07), 13–22. Retrieved from https://irjernet.com/index.php/fecsit/article/view/260