Skip to main content

Re-engineering Legacy Systems as Microservices: An Industrial Survey of Criteria to Deal with Modularity and Variability of Features

  • Chapter
  • First Online:
Handbook of Re-Engineering Software Intensive Systems into Software Product Lines

Abstract

Microservices is an emerging industrial technique to promote better modularization and management of small and autonomous services. Microservice architecture is widely used to overcome the limitations of monolithic legacy systems, such as limited maintainability and reusability. The re-engineering of monolithic legacy systems into microservice-based architectures has been receiving great attention from industry and academia lately. However, there is little knowledge on how professionals perform microservice extraction to conduct the re-engineering process. In particular, there is not much information of how legacy features should be modularized and customized as microservices, while managing variability, to fulfill customer needs. In order to address this gap, we performed a study composed of two phases. Firstly, we conduct an online survey with 26 specialists that contributed to the migration of legacy systems to a microservice architecture. Secondly, we conduct individual interviews with seven participants of the survey. The results reveal that criteria related to modularity such as coupling, cohesion, and reuse are considered useful during the microservice extraction. Half of the participants dealt with systems with variability during the extraction. Moreover, they stated that variability is a key criterion for structuring the microservices.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 149.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 199.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 279.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://martinfowler.com/articles/microservices.html.

  2. 2.

    https://www.docker.com/.

  3. 3.

    https://kubernetes.io/.

  4. 4.

    https://scholar.google.com/.

  5. 5.

    https://swagger.io/docs/specification/about/.

  6. 6.

    https://avro.apache.org.

References

  1. Alshuqayran, N., Ali, N., Evans, R.: A systematic mapping study in microservice architecture. In: International Conference on Service-Oriented Computing and Applications (SOCA), pp. 44–51 (2016)

    Google Scholar 

  2. Apel, S., Batory, D., Kstner, C., Saake, G.: Feature-Oriented Software Product Lines: Concepts and Implementation. Springer Publishing Company, Incorporated (2013)

    Book  Google Scholar 

  3. Assunção, W.K.G., Krüger, J., Mendonça, W.D.F.: Variability management meets microservices: Six challenges of re-engineering microservice-based webshops. In: 24th ACM Conference on Systems and Software Product Line: Volume A - Volume A, SPLC ’20. Association for Computing Machinery, New York, NY, USA (2020)

    Google Scholar 

  4. Bachmann, F., Clements, P.C.: Variability in software product lines. Tech. Rep. CMU/SEI-2005-TR-012, Carnegie Mellon University - Software Engineering Institute (2005)

    Google Scholar 

  5. Bass, L., Weber, I., Zhu, L.: DevOps: A software architect’s perspective. Addison-Wesley Professional (2015)

    Google Scholar 

  6. Benni, B., Mosser, S., Caissy, J.P., Guéhéneuc, Y.G.: Can microservice-based online-retailers be used as an spl? a study of six reference architectures. In: 24th ACM Conference on Systems and Software Product Line: Volume A - Volume A, SPLC ’20. Association for Computing Machinery, New York, NY, USA (2020)

    Google Scholar 

  7. Bisbal, J., Lawless, D., Wu, B., Grimson, J.: Legacy information systems: Issues and directions. IEEE Software 16(5), 103–111 (1999)

    Article  Google Scholar 

  8. Bucchiarone, A., Dragoni, N., Dustdar, S., Larsen, S.T., Mazzara, M.: From monolithic to microservices: An experience report from the banking domain. IEEE Software 35(3), 50–55 (2018)

    Article  Google Scholar 

  9. C. Martin, R.: Agile Software Development, Principles, Patterns, and Practices, 1st edn. Pearson (2002)

    Google Scholar 

  10. Capilla, R., Bosch, J., Kang, K.C.: Systems and Software Variability Management: Concepts, Tools and Experiences. Springer Publishing Company, Incorporated (2013)

    Book  Google Scholar 

  11. Carvalho, L., Garcia, A., Assunção, W.K.G., Bonifácio, R., Tizzei, L.P., Colanzi, T.E.: Extraction of configurable and reusable microservices from legacy systems: An exploratory study. In: 23rd International Systems and Software Product Line Conference - Volume A, SPLC ’19, pp. 26–31. ACM, New York, NY, USA (2019)

    Google Scholar 

  12. Carvalho, L., Garcia, A., Assunção, W.K.G., de Mello, R., de Lima, M.J.: Analysis of the criteria adopted in industry to extract microservices. In: International Workshop on Conducting Empirical Studies in Industry and International Workshop on Software Engineering Research and Industrial Practice (CESSER-IP), pp. 22–29. IEEE Press, Piscataway, NJ, USA (2019)

    Google Scholar 

  13. Carvalho, L., Garcia, A., Colanzi, T.E., Assunção, W.K.G., Pereira, J.A., Fonseca, B., Ribeiro, M., Lima, M.J., Lucena, C.: On the performance and adoption of search-based microservice identification with tomicroservices. In: The 36th IEEE International Conference on Software Maintenance and Evolution (ICSME) (2020)

    Google Scholar 

  14. Chong, F., Carraro, G.: Architecture strategies for catching the long tail. MSDN Library, Microsoft Corporation pp. 9–10 (2006)

    Google Scholar 

  15. Dragoni, N., Giallorenzo, S., Lafuente, A.L., Mazzara, M., Montesi, F., Mustafin, R., Safina, L.: Microservices: Yesterday, Today, and Tomorrow, pp. 195–216. Springer International Publishing, Cham (2017)

    Google Scholar 

  16. Dubinsky, Y., Rubin, J., Berger, T., Duszynski, S., Becker, M., Czarnecki, K.: An exploratory study of cloning in industrial software product lines. In: European Conference on Software Maintenance and Reengineering (CSMR), pp. 25–34. IEEE (2013)

    Google Scholar 

  17. Elmasri, R., Navathe, S.: Fundamentals of Database Systems, 6th edn. Addison-Wesley Publishing Company, USA (2010)

    MATH  Google Scholar 

  18. Escobar, D., Cárdenas, D., Amarillo, R., Castro, E., Garcés, K., Parra, C., Casallas, R.: Towards the understanding and evolution of monolithic applications as microservices. In: XLII Latin American Computing Conference (CLEI), pp. 1–11 (2016)

    Google Scholar 

  19. Eski, S., Buzluca, F.: An automatic extraction approach: Transition to microservices architecture from monolithic application. In: 19th International Conference on Agile Software Development: Companion, XP ’18, pp. 25:1–25:6. ACM, New York, NY, USA (2018)

    Google Scholar 

  20. Fowler, S.: Production-Ready Microservices, 1st edn. O’Reilly Media (2016)

    Google Scholar 

  21. Francesco, P.D., Lago, P., Malavolta, I.: Migrating towards microservice architectures: An industrial survey. In: International Conference on Software Architecture (ICSA), pp. 29–2909 (2018)

    Google Scholar 

  22. Francesco, P.D., Lago, P., Malavolta, I.: Architecting with microservices: A systematic mapping study. Journal of Systems and Software 150, 77–97 (2019)

    Article  Google Scholar 

  23. Ganesan, A.S., Chithralekha, T.: A survey on survey of migration of legacy systems. In: International Conference on Informatics and Analytics. ACM, New York, NY, USA (2016)

    Google Scholar 

  24. Gouigoux, J., Tamzalit, D.: From monolith to microservices: Lessons learned on an industrial migration to a web oriented architecture. In: International Conference on Software Architecture Workshops (ICSAW), pp. 62–65 (2017)

    Google Scholar 

  25. ISO: ISO/IEC/IEEE 24765: 2017(E): ISO/IEC/IEEE International Standard - Systems and software engineering–Vocabulary. IEEE (2017)

    Google Scholar 

  26. Jarwar, M.A., Ali, S., Kibria, M.G., Kumar, S., Chong, I.: Exploiting interoperable microservices in web objects enabled internet of things. In: International Conference on Ubiquitous and Future Networks, ICUFN, pp. 49–54. IEEE (2017)

    Google Scholar 

  27. Jin, W., Liu, T., Cai, Y., Kazman, R., Mo, R., Zheng, Q.: Service candidate identification from monolithic systems based on execution traces. IEEE Transactions on Software Engineering pp. 1–1 (2019)

    Google Scholar 

  28. Jin, W., Liu, T., Cai, Y., Kazman, R., Mo, R., Zheng, Q.: Service candidate identification from monolithic systems based on execution traces. IEEE Transactions on Software Engineering, pp. 1–1 (2019)

    Google Scholar 

  29. Jin, W., Liu, T., Zheng, Q., Cui, D., Cai, Y.: Functionality-oriented microservice extraction based on execution trace clustering. In: International Conference on Web Services (ICWS), pp. 211–218 (2018)

    Google Scholar 

  30. Kalia, A.K., Xiao, J., Lin, C., Sinha, S., Rofrano, J., Vukovic, M., Banerjee, D.: Mono2Micro: An AI-based toolchain for evolving monolithic enterprise applications to a microservice architecture. In: Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, ESEC/FSE 2020, p. 1606–1610 (2020)

    Google Scholar 

  31. Knoche, H.: Sustaining runtime performance while incrementally modernizing transactional monolithic software towards microservices. In: International Conference on Performance Engineering (ICPE), pp. 121–124. ACM, New York, NY, USA (2016)

    Google Scholar 

  32. Knoche, H., Hasselbring, W.: Using microservices for legacy software modernization. IEEE Software 35(3), 44–49 (2018)

    Article  Google Scholar 

  33. Lewis, J., Fowler, M.: Microservices: a definition of this new architectural term (2014). URL https://martinfowler.com/articles/microservices.html. Accessed 2019-11-29

  34. Linaker, J., Sulaman, S.M., Maiani de Mello, R., Höst, M., Runeson, P.: Guidelines for conducting surveys in software engineering (2015)

    Google Scholar 

  35. Van der Linden, F., Schmid, K., Rommes, E.: Software product lines in action: the best industrial practice in product line engineering. Springer Science & Business Media (2007)

    Google Scholar 

  36. Luz, W., Agilar, E., de Oliveira, M.C., de Melo, C.E.R., Pinto, G., Bonifácio, R.: An experience report on the adoption of microservices in three brazilian government institutions. In: XXXII Brazilian Symposium on Software Engineering (SBES), pp. 32–41. ACM, New York, NY, USA (2018)

    Google Scholar 

  37. Mazlami, G., Cito, J., Leitner, P.: Extraction of microservices from monolithic software architectures. In: International Conference on Web Services (ICWS), pp. 524–531 (2017)

    Google Scholar 

  38. de Mello, R.M., Travassos, G.H.: Surveys in software engineering: Identifying representative samples. In: International Symposium on Empirical Software Engineering and Measurement (ESEM), pp. 55:1–55:6. ACM (2016)

    Google Scholar 

  39. Mietzner, R., Metzger, A., Leymann, F., Pohl, K.: Variability modeling to support customization and deployment of multi-tenant-aware software as a service applications. In: Workshop on Principles of Engineering Service Oriented Systems (PESOS), pp. 18–25. IEEE Computer Society, Washington, DC, USA (2009)

    Google Scholar 

  40. Miller, J.: Spending on legacy IT continues to grow, but there is light at the end of the tunnel (2018). URL https://federalnewsnetwork.com/ask-the-cio/2018/08/spending-on-legacy-it-continues-to-grow-but-there-is-light-at-the-end-of-the-tunnel/

  41. Newman, S.: Building Microservices, 1st edn. O’Reilly Media (2015)

    Google Scholar 

  42. Pahl, C., Jamshidi, P.: Microservices: A systematic mapping study. In: International Conference on Cloud Computing and Services Science (CLOSER), pp. 137–146 (2016)

    Google Scholar 

  43. Pohl, K., Böckle, G., van Der Linden, F.: Software product line engineering: foundations, principles and techniques. Springer Science & Business Media (2005)

    Google Scholar 

  44. Rahman, M.T., Querel, L.P., Rigby, P.C., Adams, B.: Feature toggles: Practitioner practices and a case study. In: 13th International Conference on Mining Software Repositories (MSR), pp. 201–211. ACM, New York, NY, USA (2016)

    Google Scholar 

  45. Ransom, J., Somerville, I., Warren, I.: A method for assessing legacy systems for evolution. In: Proceedings of the Second Euromicro Conference on Software Maintenance and Reengineering, pp. 128–134 (1998)

    Google Scholar 

  46. von Rhein, A., Grebhahn, A., Apel, S., Siegmund, N., Beyer, D., Berger, T.: Presence-condition simplification in highly configurable systems. In: 37th International Conference on Software Engineering (ICSE), pp. 178–188. IEEE Press, Piscataway, NJ, USA (2015)

    Google Scholar 

  47. Richards, M.: Microservices vs. Service-Oriented Architecture. O’Reilly (2015)

    Google Scholar 

  48. Seacord, R.C., Plakosh, D., Lewis, G.A.: Modernizing Legacy Systems: Software Technologies, Engineering Process and Business Practices. Addison-Wesley Longman Publishing Co., Inc., USA (2003)

    Google Scholar 

  49. Seaman, C.B.: Qualitative methods in empirical studies of software engineering. IEEE Transactions on Software Engineering 25(4), 557–572 (1999)

    Article  Google Scholar 

  50. Segura, V.C.V.B., Tizzei, L.P., d. F. Ramirez, J.P., d. Santos, M.N., Azevedo, L.G., d. G. Cerqueira, R.F.: Wise-spl: Bringing multi-tenancy to the weather insights environment system. In: 5th International Workshop on Product Line Approaches in Software Engineering (PLEASE), pp. 7–10 (2015)

    Google Scholar 

  51. Setyautami, M.R.A., Fadhlillah, H.S., Adianto, D., Affan, I., Azurat, A.: Variability management: Re-engineering microservices with delta-oriented software product lines. In: 24th ACM Conference on Systems and Software Product Line: Volume A - Volume A, SPLC ’20. Association for Computing Machinery, New York, NY, USA (2020)

    Google Scholar 

  52. Tahir, A., MacDonell, S.G.: A systematic mapping study on dynamic metrics and software quality. In: ICSM, pp. 326–335 (2012)

    Google Scholar 

  53. Taibi, D., Lenarduzzi, V., Pahl, C.: Processes, motivations, and issues for migrating to microservices architectures: An empirical investigation. IEEE Cloud Computing 4(5), 22–32 (2017)

    Article  Google Scholar 

  54. Tizzei, L.P., Nery, M., Segura, V.C.V.B., Cerqueira, R.F.G.: Using microservices and software product line engineering to support reuse of evolving multi-tenant saas. In: 21st International Systems and Software Product Line Conference (SPLC), pp. 205–214. ACM, New York, NY, USA (2017)

    Google Scholar 

  55. Torchiano, M., Fernández, D.M., Travassos, G.H., de Mello, R.M.: Lessons learnt in conducting survey research. In: CESI, pp. 33–39. IEEE Press (2017)

    Google Scholar 

  56. Wang, Y., Kadyala, H., Rubin, J.: Promises and challenges of microservices: an exploratory study. Empirical Software Engineering (2021)

    Google Scholar 

  57. Watson, C., Emmons, S., Gregg, B.: A microscope on microservices (2015). URL http://techblog.netflix.com/2015/02/a-microscope-on-microservices.html. Accessed 2019-11-29

  58. Wohlin, C.: Guidelines for snowballing in systematic literature studies and a replication in software engineering. In: International Conference on Evaluation and Assessment in Software Engineering (EASE), pp. 38:1–38:10. ACM, New York, NY, USA (2014)

    Google Scholar 

  59. Yuan, E.: Architecture interoperability and repeatability with microservices: An industry perspective. In: International Workshop on Establishing a Community-Wide Infrastructure for Architecture-Based Software Engineering, ECASE, pp. 26–33. IEEE (2019)

    Google Scholar 

  60. Zhang, Y., Liu, B., Dai, L., Chen, K., Cao, X.: Automated microservice identification in legacy systems with functional and non-functional metrics. In: 2020 IEEE International Conference on Software Architecture (ICSA), pp. 135–145 (2020)

    Google Scholar 

Download references

Acknowledgements

This study was partially funded by CNPq grants 151723/2020-6, 434969/2018-4, 312149/2016-6, 408356/2018-9 and 428994/2018-0, 421306/2018-1, 309844/2018-5, CAPES grant 175956, the Carlos Chagas Filho Foundation for Supporting Research in the State of Rio de Janeiro (FAPERJ) grants 22520-7/2016, 010002285/2019, and PDR-10 program 202073/2020, FAPPR grants 51152 and 51435, and FAPEAL grants 60030.0000000462/2020.

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Luiz Carvalho or Wesley K. G. Assunção .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Carvalho, L. et al. (2023). Re-engineering Legacy Systems as Microservices: An Industrial Survey of Criteria to Deal with Modularity and Variability of Features. In: Lopez-Herrejon, R.E., Martinez, J., Guez Assunção, W.K., Ziadi, T., Acher, M., Vergilio, S. (eds) Handbook of Re-Engineering Software Intensive Systems into Software Product Lines. Springer, Cham. https://doi.org/10.1007/978-3-031-11686-5_19

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-11686-5_19

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-11685-8

  • Online ISBN: 978-3-031-11686-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics