Abstract
Microservice architecture style advocates the design and coupling of highly independent services. Various granularity dimensions of the constituent services have been proposed to measure the complexity and refinement levels of the service provision. Moreover, attaching annotations to operations adds granularity to the services while adding features and facilitating the implementation of applications. Microservice applications with inadequate granularity affect the system quality of service (e.g., performance), introduce issues for management, and increase the diagnosing and debugging time of microservices to days or even weeks. In this paper, we propose a semantics-driven learning approach to mining the granularity limits of operations with their annotations according to the developer community. The learning process pursues to build a vector space for clustering similar operations with their annotations that facilitate the identification of granularity. The evaluation shows that clustering annotations by operations similarity achieves significantly high accuracy when classifying unseen operations (89%).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Cojocaru, M., Uta, A., Oprescu, A.M.: MicroValid: a validation framework for automatically decomposed microservices. In: Proceedings of the International Conference on Cloud Computing Technology and Science, CloudCom 2019, pp. 78–86 (2019)
Fritzsch, J., Bogner, J., Zimmermann, A., Wagner, S.: From monolith to microservices: a classification of refactoring approaches. In: Bruel, J.-M., Mazzara, M., Meyer, B. (eds.) DEVOPS 2018. LNCS, vol. 11350, pp. 128–141. Springer, Cham (2019). https://doi.org/10.1007/978-3-030-06019-0_10
Hassan, S., Bahsoon, R., Kazman, R.: Microservice transition and its granularity problem: A systematic mapping study. Softw. Pract. Exp. 50(9), 1651–1681 (2020)
Jamshidi, P., Pahl, C., Mendonca, N.C., Lewis, J., Tilkov, S.: Microservices: The Journey So Far and Challenges Ahead. IEEE Softw. 35(3), 24–35 (2018)
Perez, D., Chiba, S.: Cross-language clone detection by learning over abstract syntax trees. In: Proceedings of the 16th International Conference on Mining Software Repositories (MSR 2019), pp. 518–528. IEEE (2019)
Pigazzini, I., Fontana, F.A., Lenarduzzi, V., Taibi, D.: Towards Microservice smells detection. In: Proceedings of the 3rd International Conference on Technical Debt (TechDebt 2020), pp. 92–97. ACM (2020)
Pinheiro, P., Carlos Viana, J., et al.: Mutation operators for code annotations. In: Proceedings of the III Brazilian Symposium on Systematic and Automated Software Testing (SAST 2018), pp. 77–86. ACM (2018)
Ramirez, F., Mera-Gomez, C., Bahsoon, R., Zhang, Y.: An empirical study on microservice software development. In: Proceedings - 2021 IEEE/ACM Joint 9th International Workshop on Software Engineering for Systems-of-Systems and 15th Workshop on Distributed Software Development, Software Ecosystems and Systems-of-Systems, SESoS/WDES 2021, pp. 16–23 (2021)
Santos, A., Paula, H.: Microservice decomposition and evaluation using dependency graph and silhouette coefficient. In: ACM International Conference Proceeding Series, pp. 51–60 (2021)
Vera-Rivera, F.H., Puerto, E., Astudillo, H., Gaona, C.: Microservices backlog - a genetic programming technique for identification and evaluation of microservices from user stories. IEEE Access 9, 117178–117203 (2021)
Vural, H., Koyuncu, M.: Does domain-driven design lead to finding the optimal modularity of a microservice? IEEE Access 9, 32721–32733 (2021)
Wu, L., et al.: MicroDiag: fine-grained performance diagnosis for microservice systems. In: Proceedings of the International Workshop on Cloud Intelligence (CloudIntelligence 2021), pp. 31–36. IEEE (2021)
Zilberstein, M., Yahav, E.: Leveraging a corpus of natural language descriptions for program similarity. In: Onward! 2016: Proceedings of the 2016 ACM International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software, pp. 197–211. ACM (2016)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Ramírez, F., Mera-Gómez, C., Bahsoon, R., Zhang, Y. (2022). Mining the Limits of Granularity for Microservice Annotations. In: Troya, J., Medjahed, B., Piattini, M., Yao, L., Fernández, P., Ruiz-Cortés, A. (eds) Service-Oriented Computing. ICSOC 2022. Lecture Notes in Computer Science, vol 13740. Springer, Cham. https://doi.org/10.1007/978-3-031-20984-0_19
Download citation
DOI: https://doi.org/10.1007/978-3-031-20984-0_19
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-20983-3
Online ISBN: 978-3-031-20984-0
eBook Packages: Computer ScienceComputer Science (R0)