Skip to main content

Mining the Limits of Granularity for Microservice Annotations

  • Conference paper
  • First Online:
Service-Oriented Computing (ICSOC 2022)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 13740))

Included in the following conference series:

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%).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    https://bitbucket.org/mining-granularity-limits/replication-package/.

References

  1. 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)

    Google Scholar 

  2. 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

    Chapter  Google Scholar 

  3. Hassan, S., Bahsoon, R., Kazman, R.: Microservice transition and its granularity problem: A systematic mapping study. Softw. Pract. Exp. 50(9), 1651–1681 (2020)

    Google Scholar 

  4. 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)

    Article  Google Scholar 

  5. 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)

    Google Scholar 

  6. 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)

    Google Scholar 

  7. 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)

    Google Scholar 

  8. 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)

    Google Scholar 

  9. Santos, A., Paula, H.: Microservice decomposition and evaluation using dependency graph and silhouette coefficient. In: ACM International Conference Proceeding Series, pp. 51–60 (2021)

    Google Scholar 

  10. 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)

    Article  Google Scholar 

  11. Vural, H., Koyuncu, M.: Does domain-driven design lead to finding the optimal modularity of a microservice? IEEE Access 9, 32721–32733 (2021)

    Article  Google Scholar 

  12. 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)

    Google Scholar 

  13. 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)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yuqun Zhang .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics