Architecture Refactoring Towards Service Reusability in the Context of Microservices
Open Access
- 29 May 2025
- book chapter
- Published by Springer Nature
- p. 129-144
Abstract
Agility embraces changes in the functional and non-functional requirements. When the latter happens, the architecture needs to evolve, putting architectural refactoring in evidence. Microservices is an architectural style that enables more agility in a system’s architecture, as it favors the evolution of the system by adding new operations. But it also has its liabilities: the number of services can explode, with similar ones being created. Ultimately, that harms the system’s evolution and maintenance. This work addresses these challenges by proposing a catalog of architecture refactorings to promote reusability in Microservices. These refactorings target patterns that embrace data heterogeneity in the APIs and employ metadata to enhance messages and guide processing. We evaluated the catalog with case studies of three real-world applications and conducted change impact analysis in two scenarios: adding a new data provider, and adding a new processing algorithm. The results showed that embracing heterogeneous data in the API enables a more seamless addition of new data providers, and using metadata can strongly decouple the processing algorithms from the data they use. Furthermore, the results point to other improvements in observability, scalability, and infrastructure.Keywords
This publication has 17 references indexed in Scilit:
- Microservice API Evolution in Practice: A Study on Strategies and ChallengesJournal of Systems and Software, 2024
- How do microservices evolve? An empirical analysis of changes in open-source microservice repositoriesJournal of Systems and Software, 2023
- An Empirical Study About the Instability and Uncertainty of Non-functional Requirements2023
- Is it a case study?—A critical analysis and guidanceJournal of Systems and Software, 2022
- Sampling in software engineering research: a critical review and guidelinesEmpirical Software Engineering, 2022
- Continuous Architecture in Practice2016
- Guidelines for conducting and reporting case study research in software engineeringEmpirical Software Engineering, 2008
- Creational Patterns2006
- Architecture-level modifiability analysis (ALMA)Journal of Systems and Software, 2004
- Change impact analysis to support architectural evolutionJournal of Software Maintenance and Evolution: Research and Practice, 2002