Granulify: Continuous Microservice Granularity Management with Saturation Signals from Longitudinal Industrial Evidence
DOI:
https://doi.org/10.5753/jserd.2026.7575Keywords:
Microservices, Service Granularity, Continuous Architecture Management, Software Metrics, Longitudinal Action ResearchAbstract
Problem: Microservice granularity is typically treated as a one-time design decision, yet service boundaries must evolve with changing technical and business demands. The absence of systematic mechanisms for continuously reassessing granularity often leads to excessive fragmentation, increased maintenance effort, and elevated operational costs. Method: This paper presents Granulify, a novel evidence-based approach for continuous granularity management that addresses critical gaps identified in a systematic mapping of 24 primary studies. The approach integrates qualitative diagnosis and quantitative assessment to support iterative boundary adjustments. The approach introduces the Granularity Classification Spectrum (GCS) for positioning services along a granularity continuum, and the Granularity Saturation Method (GSM), which combines polarity-aligned metrics into two aggregate indices—Net Benefit (NB) and Total Variation (TV)—and derives a bounded Saturation Score (SS) from their ratio for regime classification. Thresholds are calibrated through a lagged rolling window, ensuring that each period is classified only using prior historical observations. We followed an industry-oriented Design Science Research approach, operationalised through 13-month longitudinal action research in a large-scale financial services platform, where the first author served as lead architect actively participating in granularity decisions while systematically collecting evidence. Results: The rolling analysis treated the initial months as calibration warm-up and identified the first actionable over-decomposition signal in February 2024, when negative Net Benefit values indicated architectural degradation. These quantitative signals were interpreted through triangulation with qualitative observations from sprint retrospectives and architecture review meetings. During the prospective intervention phase, Granulify supported the team in identifying efficient decomposition periods, detecting empirical saturation before further fragmentation, and performing a strategic consolidation that was associated with the highest Saturation Score values of the observation period. Conclusion: Granulify provides actionable, evidence-based support for architectural decisions that traditionally relied on subjective judgement, supporting teams in detecting saturation signals and adjusting service boundaries before incurring unnecessary complexity and costs.
Downloads
References
Abgaz, Y., McCarren, A., Elger, P., Solan, D., Lapuz, N., Bivol, M., Jackson, G., Yilmaz, M., Buckley, J., and Clarke, P. (2023). Decomposition of monolith applications into microservices architectures: A systematic review. IEEE Transactions on Software Engineering, 49(8):4213–4242.
Ait Said, M., Ezzati, A., Mihi, S., and Belouaddane, L. (2024). Microservices adoption: An industrial inquiry into factors influencing decisions and implementation strategies. International Journal of Computing and Digital Systems, 15(1):1417–1432.
Avison, D., Lau, F., Myers, M., and Nielsen, P. A. (1999). Action research. Communications of the ACM, 42(1):94–97.
Bakhtin, A. (2025). Temporal network analysis of microservice architectural degradation.
Bakhtin, A., Esposito, M., Lenarduzzi, V., and Taibi, D. (2025). Centrality change proneness: An early indicator of microservice architectural degradation.
Becker, A. M. and Lucrédio, D. (2020). The impact of microservices on the evolution of a software product line. In Proceedings of the 14th Brazilian Symposium on Software Components, Architectures, and Reuse, SBCARS ’20. ACM.
Behrad, S., Espes, D., Bertin, P., and Phan, C.-T. (2021). Impacts of service decomposition models on security attributes: A case study with 5G network repository function. In 2021 IEEE 7th International Conference on Network Softwarization (NetSoft). IEEE.
Belachew, E. B. (2018). Analysis of software quality using software metrics. International Journal on Computational Science & Applications, 8(4/5):11–20.
Bogner, J., Fritzsch, J., Wagner, S., and Zimmermann, A. (2021). Industry practices and challenges for the evolvability assurance of microservices: An interview study and systematic grey literature review. Empirical Software Engineering, 26(5).
Bogner, J., Wagner, S., and Zimmermann, A. (2017). Automatically measuring the maintainability of service- and microservice-based systems: A literature review. In Proceedings of the 27th International Workshop on Software Measurement and 12th International Conference on Software Process and Product Measurement, IWSM/Mensura ’17. ACM.
Bogner, J., Wagner, S., and Zimmermann, A. (2019). On the impact of service-oriented patterns on software evolvability: A controlled experiment and metric-based analysis. PeerJ Computer Science, 5:e213.
Colanzi, T., Amaral, A., Assunção, W., Zavadski, A., Tanno, D., Garcia, A., and Lucena, C. (2021). Are we speaking the industry language? The practice and literature of modernizing legacy systems with microservices. In 15th Brazilian Symposium on Software Components, Architectures, and Reuse, SBCARS ’21. ACM.
Cruz, P., Astudillo, H., Hilliard, R., and Collado, M. (2019). Assessing migration of a 20-year-old system to a microservice platform using ATAM. In 2019 IEEE International Conference on Software Architecture Companion (ICSA-C), pages 174–181.
Dresch, A., Lacerda, D., and Júnior, J. (2020). Design Science Research: Método de Pesquisa para Avanço da Ciência e Tecnologia. Métodos de Pesquisa. Bookman Editora.
Driessen, F., Ferreira Pires, L., Moreira, J. L. R., Verhoeven, P., and van den Bosch, S. (2024). A quantitative assessment method for microservices granularity to improve maintainability. In Sales, T. P., de Kinderen, S., Proper, H. A., Pufahl, L., Karastoyanova, D., and van Sinderen, M., editors, Enterprise Design, Operations, and Computing. EDOC 2023 Workshops, pages 211–226. Cham: Springer Nature Switzerland.
Evans, E. (2003). Domain-Driven Design: Tackling Complexity in the Heart of Software. Addison-Wesley Professional.
Ford, N. (2023). Building Evolutionary Architectures. 2nd edition. O’Reilly.
Fowler, S. J. (2017). Production-Ready Microservices. 1st edition. O’Reilly.
Fritzsch, J., Bogner, J., Wagner, S., and Zimmermann, A. (2019). Microservices migration in industry: Intentions, strategies, and challenges. In 2019 IEEE International Conference on Software Maintenance and Evolution (ICSME). IEEE.
Gravanis, D., Kakarontzas, G., and Gerogiannis, V. (2022). You don’t need a microservices architecture (yet): Monoliths may do the trick. In Proceedings of the 2021 European Symposium on Software Engineering (ESSE ’21), pages 39–44. Association for Computing Machinery.
Hasan, M. H., Osman, M. H., Admodisastro, N. I., and Muhammad, M. S. (2023). From monolith to microservice: Measuring architecture maintainability. International Journal of Advanced Computer Science and Applications, 14(5).
Hassan, S., Bahsoon, R., and Buyya, R. (2022). Systematic scalability analysis for microservices granularity adaptation design decisions. Software: Practice and Experience, 52(6):1378–1401.
Hassan, S., Bahsoon, R., and Kazman, R. (2020). Microservice transition and its granularity problem: A systematic mapping study. Software: Practice and Experience, 50(9):1651–1681.
Hassan, S., Bahsoon, R., Minku, L., and Ali, N. (2021). Dynamic evaluation of microservice granularity adaptation. ACM Transactions on Autonomous and Adaptive Systems, 16(2):1–35.
Hastie, T., Tibshirani, R., and Friedman, J. (2009). The Elements of Statistical Learning: Data Mining, Inference, and Prediction. 2nd edition. Springer.
Heitlager, I., Kuipers, T., and Visser, J. (2007). A practical model for measuring maintainability. In 6th International Conference on the Quality of Information and Communications Technology (QUATIC 2007). IEEE.
Homay, A., Zoitl, A., de Sousa, M., and Wollschlaeger, M. (2019). A survey: Microservices architecture in advanced manufacturing systems. In 2019 IEEE 17th International Conference on Industrial Informatics (INDIN). IEEE.
Huang, L., Zhuang, W., Sun, M., and Zhang, H. (2020). Research and application of microservice in power grid dispatching control system. In 2020 IEEE 4th Information Technology, Networking, Electronic and Automation Control Conference (ITNEC), volume 1, pages 1895–1899. IEEE.
Josélyne, M. I., Tuheirwe-Mukasa, D., Kanagwa, B., and Balikuddembe, J. (2018). Partitioning microservices: A domain engineering approach. In Proceedings of the 2018 International Conference on Software Engineering in Africa (ICSE ’18). ACM.
Justino, Y., Silva, C., and Duarte, R. (2025). Continuously managing microservice granularity: An evidence-based industrial approach. In Anais do XXXIX Simpósio Brasileiro de Engenharia de Software, pages 226–236. Porto Alegre, RS, Brasil: SBC.
Kitchenham, B. and Charters, S. (2007). Guidelines for Performing Systematic Literature Reviews in Software Engineering.
Kolny, M. (2023). Scaling up the Prime Video audio/video monitoring service and reducing costs by 90%.
Mendonca, N. C., Box, C., Manolache, C., and Ryan, L. (2021). The monolith strikes back: Why Istio migrated from microservices to a monolithic architecture. IEEE Software, 38(5):17–22.
Newman, S. (2021). Building Microservices. 2nd edition. O’Reilly.
Nunes, L., Santos, N., and Rito Silva, A. (2019). From a Monolith to a Microservices Architecture: An Approach Based on Transactional Contexts. In pages 37–52. Springer International Publishing.
Parnas, D. L. (1972). On the criteria to be used in decomposing systems into modules. Communications of the ACM, 15(12):1053–1058.
Richards, M. (2015). Microservices vs. Service-Oriented Architecture. O’Reilly Media.
Salii, S., Ajdari, J., and Zenuni, X. (2023). Migrating to a microservice architecture: Benefits and challenges. In 2023 46th MIPRO ICT and Electronics Convention (MIPRO). IEEE.
Setiadi, D., Sumitra, T., Karim, A., and Ritzkal. (2024). Software quality measurement analysis on academic information systems. Ingénierie des Systèmes d’Information, 29(4):1453–1460.
Shaw, M. and Garlan, D. (1996). Software Architecture: Perspectives on an Emerging Discipline. Prentice Hall.
Taibi, D. and Lenarduzzi, V. (2018). On the definition of microservice bad smells. IEEE Software, 35(3):56–62.
Taibi, D., Lenarduzzi, V., and Pahl, C. (2017). Processes, motivations, and issues for migrating to microservices architectures: An empirical investigation. IEEE Cloud Computing, 4(5):22–32.
Tighilt, R., Abdellatif, M., Trabelsi, I., Madern, L., Moha, N., and Guéhéneuc, Y.-G. (2023). On the maintenance support for microservice-based systems through the specification and the detection of microservice antipatterns. Journal of Systems and Software, 204:111755.
Tusjunt, M. and Vatanawood, W. (2018). Refactoring orchestrated web services into microservices using decomposition pattern. In 2018 IEEE 4th International Conference on Computer and Communications (ICCC). IEEE.
Vera-Rivera, F. H., Gaona, C., Astudillo, H., and and (2021). Defining and measuring microservice granularity: A literature overview. PeerJ Computer Science, 7:e695.
Vernon, V. (2015). Implementing Domain-Driven Design. 4th printing edition. Addison-Wesley.
Vural, H. and Koyuncu, M. (2021). Does domain-driven design lead to finding the optimal modularity of a microservice? IEEE Access, 9:32721–32733.
Waseem, M., Liang, P., Shahin, M., Di Salle, A., and Márquez, G. (2021). Design, monitoring, and testing of microservices systems: The practitioners’ perspective. Journal of Systems and Software, 182:111061.
Wohlin, C., Runeson, P., Höst, M., Ohlsson, M., Regnell, B., and Wesslén, A. (2012). Experimentation in Software Engineering. Springer.
Zhang, H., Li, S., Jia, Z., Zhong, C., and Zhang, C. (2019). Microservice architecture in reality: An industrial inquiry. In 2019 IEEE International Conference on Software Architecture (ICSA), pages 51–60. IEEE.
Zhong, C., Huang, H., Zhang, H., and Li, S. (2022). Impacts, causes, and solutions of architectural smells in microservices: An industrial investigation. Software: Practice and …
Zhou, X., Li, S., Cao, L., Zhang, H., Jia, Z., Zhong, C., Shan, Z., and Babar, M. A. (2023). Revisiting the practices and pains of microservice architecture in reality: An industrial inquiry. Journal of Systems and Software, 195:111521.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Yan Justino, Carlos Eduardo da Silva, Rafael Batista Duarte

This work is licensed under a Creative Commons Attribution 4.0 International License.

