Skip to main content

Microservices Anti-patterns: A Taxonomy

  • Chapter
  • First Online:
Microservices

Abstract

Several companies are rearchitecting their monolithic information systems with microservices. However, many companies migrate to microservices without experience, mainly learning how to migrate from books or from practitioners’ blogs. Because of the novelty of the topic, practitioners and consultancies are learning by doing how to migrate, thus facing several issues but also several benefits. In this chapter, we introduce a catalog and a taxonomy of the most common microservices anti-patterns in order to identify common problems. Our anti-pattern catalog is based on the experience summarized by different practitioners we interviewed in the last 3 years. We identified a taxonomy of 20 anti-patterns, including organizational (team oriented and technology/tool oriented) anti-patterns and technical (internal and communication) anti-patterns. The results can be useful to practitioners to avoid experiencing the same difficult situations in the systems they develop. Moreover, researchers can benefit from this catalog and further validate the harmfulness of the anti-patterns identified.

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 129.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.00
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 169.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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Similar content being viewed by others

References

  1. V. Alagarasan (Asurion), Microservices Antipatterns (Microservices-Summit, New York, 2016)

    Google Scholar 

  2. F. Arcelli Fontana, V. Lenarduzzi, R. Roveda, D. Taibi, Are architectural smells independent from code smells? An empirical study. J. Syst. Softw. 154, 139–156 (2019)

    Article  Google Scholar 

  3. U. Azadi, F. Arcelli Fontana, D. Taibi, Architectural smells detected by tools: a catalogue proposal, in International Conference on Technical Debt (TechDebt 2019) (2019)

    Google Scholar 

  4. A. Balalaie, A. Heydarnoori, P. Jamshidi, D.A. Tamburri, T. Lynn Microservices migration patterns. Softw. Pract. Exp. 48(11), 2019–2042 (2018)

    Google Scholar 

  5. J. Bogard, Avoiding microservices megadisaster, in NDC-Conference London (2017)

    Google Scholar 

  6. J. Bogner, T. Boceck, M. Popp, D. Tschechlov, S. Wagner, A. Zimmermann, Towards a collaborative repository for the documentation of service-based antipatterns and bad smells. IEEE International Conference on Software Architecture Companion (ICSA-C) (2019)

    Google Scholar 

  7. D. Bryant (SpectoLabs), The Seven (more) Deadly Sins of Microservices (O’Reilly OSCON, London, 2016)

    Google Scholar 

  8. J. Garcia, D. Popescu, G. Edwards, N. Medvidovic, Identifying architectural bad smells, in 2009 13th European Conference on Software Maintenance and Reengineering, Kaiserslautern (2009), pp. 255–258

    Google Scholar 

  9. V. Lenarduzzi, A. Sillitti, D. Taibi, Analyzing forty years of software maintenance models, in International Conference on Software Engineering (ICSE) (2017)

    Google Scholar 

  10. V. Lenarduzzi, A. Sillitti, D. Taibi, A survey on code analysis tools for software maintenance prediction, in International Conference in Software Engineering for Defence Applications (SEDA) (2018)

    Google Scholar 

  11. J. Lewis, M. Fowler, Microservices (2014). www.martinfowler.com/articles/microservices.html. Accessed July 2017

  12. I. Macia, J. Garcia, D. Popescu, A. Garcia, N. Medvidovic, A. von Staa, Are automatically-detected code anomalies relevant to architectural modularity? an exploratory analysis of evolving systems, in International Conference on Aspect-Oriented Software Development (AOSD ’12) (2012), pp. 167–178

    Google Scholar 

  13. N. Moha, Y.G. Gueheneuc, L. Duchien, A.F. Le Meur, DECOR: a method for the specification and detection of code and design smells. IEEE Trans. Softw. Eng. 36(1), 20–36 (2010)

    Article  Google Scholar 

  14. S. Newman, Building Microservices (O’Reilly, Sebastopol, 2015)

    Google Scholar 

  15. C. Pahl, P. Jamshidi, Microservices: a systematic mapping study, in Proceedings of the 6th International Conference on Cloud Computing and Services Science—CLOSER (2018)

    Google Scholar 

  16. M. Richards, Microservices AntiPatterns and Pitfalls (O’Reilly eBooks, Sebastopol, 2016)

    Google Scholar 

  17. C. Richardson, Microservice Patterns (Manning Publications, Shelter Island, 2017)

    Google Scholar 

  18. C. Richardson, Potholes in the road from monolithic hell: microservices adoption anti-patterns, in O’Really Software Architecture Conference, London (2018)

    Google Scholar 

  19. N. Saarimäki, F. Lomio, V. Lenarduzzi, D. Taibi, Does migrate a monolithic system to microservices decrease the technical debt? CoRR, abs/1902.06282, 2019. [Online]. http://arxiv.org/abs/1902.06282

  20. T. Saleh, Microservices Antipatterns (QCon, London, 2016)

    Google Scholar 

  21. R. Shoup, From the Monolith to Microservices: Lessons from Google and eBay. Craft-Con April 24th, 2015.

    Google Scholar 

  22. J. Soldani, D.A.Tamburri, W. van den Heuvel. The pains and gains of microservices: a systematic grey literature review. J. Syst. Softw. 146, 215–232 (2018)

    Article  Google Scholar 

  23. A.L. Strauss, J. Corbin, Basics of Qualitative Research: Techniques and Procedures for Developing Grounded Theory (SAGE Publications, Thousand Oaks, 2008)

    Google Scholar 

  24. D. Taibi, V. Lenarduzzi, On the definition of microservice bad smells. IEEE Softw. 35(3), 56–62 (2018)

    Article  Google Scholar 

  25. D. Taibi, K. Systa, From monolithic systems to microservices: a decomposition framework based on process mining, in 8th International Conference on Cloud Computing and Services Science, CLOSER 2019 (2019)

    Google Scholar 

  26. D. Taibi, A. Janes, V. Lenarduzzi, How developers perceive smells in source code: a replicated study. Inf. Softw. Technol. 92, 223–235 (2017). https://doi.org/10.1016/j.infsof.2017.08.008

    Article  Google Scholar 

  27. D. Taibi, V. Lenarduzzi, C. Pahl, Processes, motivations and issues for migrating to microservices architectures: an empirical investigation. IEEE Cloud Comput. 4(5), 22–32 (2017). https://doi.org/10.1109/MCC.2017.42509312017

    Article  Google Scholar 

  28. D. Taibi, V. Lenarduzzi, C. Pahl, A. Janes, in Microservices in Agile Software Development: A Workshop-Based Study into Issues, Advantages, and Disadvantages” XP ’17 Workshops, Cologne (2017)

    Google Scholar 

  29. D. Taibi, V. Lenarduzzi, P. Diebold, I. Lunesu, Operationalizing the experience factory for effort estimation in agile processes, in International Conference on Evaluation and Assessment in Software Engineering (EASE2017) (2017)

    Google Scholar 

  30. D. Taibi, V. Lenarduzzi, M.O. Ahmad, K. Liukkunen, Comparing communication effort within the scrum, scrum with kanban, XP, and banana development processes, in Proceedings of the 21st International Conference on Evaluation and Assessment in Software Engineering, EASE17 (2017)

    Google Scholar 

  31. D. Taibi, V. Lenarduzzi, A. Janes, K. Liukkunen, M.O. Ahmad, Comparing requirements decomposition within the scrum, scrum with kanban, XP, and banana development processes, in Agile Processes in Software Engineering and Extreme Programming (2017)

    Google Scholar 

  32. D. Taibi, V. Lenarduzzi, C. Pahl, Architectural patterns for microservices: a systematic mapping study, in Proceedings of the 8th International Conference on Cloud Computing and Services Science—CLOSER (2018)

    Google Scholar 

  33. O. Zimmermann, M. Stocker, U. Zdun, D. Lubke, C. Pautasso, Microservice API Patterns (2018). https://microservice-api-patterns.org. Accessed 5 June 2019

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Davide Taibi .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Taibi, D., Lenarduzzi, V., Pahl, C. (2020). Microservices Anti-patterns: A Taxonomy. In: Bucchiarone, A., et al. Microservices. Springer, Cham. https://doi.org/10.1007/978-3-030-31646-4_5

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-31646-4_5

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-31645-7

  • Online ISBN: 978-3-030-31646-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics