Breaking Down the Monolith

Breaking Down the Monolith

THE DZONE GUIDE TO Microservices Breaking Down the Monolith VOLUME I BROUGHT TO YOU IN PARTNERSHIP WITH DZONE.COM/GUIDES DZONE’S GUIDE TO MICROSERVICES: BREAKING DOWN THE MONOLITH DEAR READER, TABLE OF CONTENTS The architectural pattern known as “microservices” has yet to 3 Executive Summary hit its 10th birthday, but it already feels well-established. First BY MATT WERNER coined in the 2010s, it aims to make large-scale application development 4 Key Research Findings and maintenance easier. Microservices allow applications to adapt and BY G. RYAN SPAIN scale when needed by breaking their architecture into loosely coupled 8 Microservices on the JVM with Actors services that developers can easily change, replace, and scale. BY MARKUS EISELE They help large teams work collaboratively on projects, as each team 12 Streamlined Microservice Design in Practice BY MATT MCLARTY & IRAKLI NADAREISHVILI or team member can work on individual services without blocking other team members. Spikes in demand can be easier to handle with 15 An API-First Approach for Microservices on Kubernetes microservices, which allow you to add new instances of services when BY BORIS SCHOLL & CLAUDIO CALDATO needed, and removing them when they’re not. 20 Infographic: Big Things Come In Microservices The pattern attracted so much popularity that it’s led to increased 22 Microservices and Team Organization BY THOMAS JARDINET interest and development in technologies that work well in collaboration with it. This includes new design processes, containers, API design (and 26 Communicating Between Microservices subsequently GraphQL), message queues, front-end technologies, CI/ BY PIOTR MINKOWSKI CD, and service orchestration frameworks. 29 Diving Deeper into Microservices Developers love microservices, as they enable them to have more control 32 What to Consider When Dealing With Microservices Data over the design of their particular application area. They are also able to BY CHRISTIAN POSTA experiment with new languages and practices without changing an entire 36 Reactive Persistence for Reactive Systems application, swapping in experimental components and monitoring their BY MARK MAKARY effects. Architects, product owners, and engineering managers should 40 Executive Insights on the Current and Future State of be aware that they use microservices-based architectures only when Microservices necessary and have enough resources. There will be significant migration BY TOM SMITH time, and the approach can increase complexity in testing, deployment, 44 Microservices Solutions Directory and deciding how to divide the services of an application. 49 Glossary Recent years have seen the pattern applied in a wider context. I spent much of my programming past working with huge monolithic content PRODUCTION BUSINESS EDITORIAL management systems (CMS) where we struggled against a maze of Chris Smith Rick Ross Caitlin Candelmo DIRECTOR OF PRODUCTION CEO DIR. OF CONTENT & COMMUNITY interconnected parts. There is now a world of “headless CMS” platforms Andre Powell Matt Schmidt Matt Werner that allow developers to create specialized services that excel at their SR. PROD. COORDINATOR PRESIDENT PUBLICATIONS COORDINATOR tasks. For example, a solid content management service that feeds G. Ryan Spain Jesse Davis Michael Tharrington PROD. PUBLICATIONS EDITOR EVP CONTENT & COMMUNITY content to a JavaScript front-end framework. MANAGER Ashley Slate SALES DESIGN DIR. Kara Phelps Matt O’Brian CONTENT & COMMUNITY This guide focuses on crucial pieces of the microservices puzzle, helping DIR. OF BUSINESS DEV. MANAGER Billy Davis you construct an effective, meaningful application architecture. We’ll PRODUCTION ASSISSTANT Alex Crafts Mike Gates focus on the best approaches to reduce overhead during migration; DIR. OF MAJOR ACCOUNTS SR. CONTENT COORDINATOR how individual services communicate with each other, including Jim Howard Sarah Davis MARKETING SR ACCOUNT EXECUTIVE CONTENT COORDINATOR the messaging options and formats; and how teams working with Kellet Atkinson Jim Dyer Tom Smith DIR. OF MARKETING microservices can better communicate with each other. When it comes ACCOUNT EXECUTIVE RESEARCH ANALYST to digging deeper into individual applications, you’ll learn about the best Lauren Curatola Andrew Barker Jordan Baker MARKETING SPECIALIST CONTENT COORDINATOR ACCOUNT EXECUTIVE hosts for your applications, from container options and patterns to the Kristen Pagàn Brian Anderson Anne Marie Glen MARKETING SPECIALIST CONTENT COORDINATOR best approaches on the JVM. We also cover how to maintain consistency ACCOUNT EXECUTIVE between distributed nodes of an application, as what use is a distributed Natalie Iannello MARKETING SPECIALIST Chris Brumfield application if it’s data never matches? Finally, to inspire you when you SALES MANAGER Miranda Casey Ana Jones need guidance, we have case studies from developers and architects MARKETING SPECIALIST ACCOUNT MANAGER explaining how they tackled problems and their experiences. Julian Morris Tom Martin MARKETING SPECIALIST ACCOUNT MANAGER Microservices introduce a new way of developing and managing your Want your solution to be featured in coming guides? Special thanks to our applications, but there’s a lot of knowledge available, and with this Please contact [email protected] for submission information. topic experts, Zone guide, we will get you on the right path as quickly as possible. Enjoy. Leaders, trusted DZone Like to contribute content to coming guides? Most Valuable Bloggers, Please contact [email protected] for consideration. and dedicated users for all their help and BY CHRIS WARD Interested in becoming a DZone Research Partner? feedback in making this ZONE LEADER, DZONE Please contact [email protected] for information. guide a great success. 2 DZONE’S GUIDE TO MICROSERVICES: BREAKING DOWN THE MONOLITH DZONE.COM/GUIDES DZONE’S GUIDE TO MICROSERVICES: BREAKING DOWN THE MONOLITH NO LACK OF TOOLS, BUT LACK OF USE DATA Executive 58% of respondents do not use a service discovery tool, 74% do not use a platform to manage their microservices, and 72% do not use a distributed tracing tool. 58% of users Summary do not use a service discovery tool, and 22% do not secure their services. IMPLICATIONS Many developers have yet to use tools that might make BY MATT WERNER PUBLICATIONS COORDINATOR, DZONE microservices easier to manage beyond tools like containers and frameworks to build them, such as Java EE, Spring Boot, and MicroProfile. This is likely due to the recent abundance of options and popularity of the While service-oriented architectures have been a fixture technology. in the software development world for years, the concept of microservices is much more recent, and has taken the RECOMMENDATIONS world by storm. There’s an enormous amount of excite- 47% cited monitoring as a chief concern, but tools that ment around these architectures on DZone and beyond, assist with monitoring microservices, such as service but when writing this guide, DZone wanted to know how discovery or management platforms, are not being used. many people were actually using them, and have they Investigate tools like service meshes and API gateways really helped developers with their lives? To find out, we that make microservices management easier. surveyed 605 DZone readers, and have shared the re- sults in our first ever Guide to Microservices. THREE OF A PERFECT PAIR DATA WHY MICROSERVICES? 67% of respondents are currently using DevOps processes DATA (similar to results we’ve seen in our 2017 DevOps and Of those who are using microservices, 81% want to Containers guides). 34% use containers in development, make easily scalable applications, 71% want to enable 12% use them in production, and 19% use them in both faster deployments, 50% want to have teams focused on stages. Those who use microservices in either prod or dev particular pieces of an application, and 42% want an easy are more likely to use DevOps or Continuous Delivery, and way to find where an application is failing. those who use microservices in prod are more likely to use containers in prod, as well. IMPLICATIONS 81% of respondents who use microservices say their IMPLICATIONS lives are easier as a result, implying that moving to a Developers using microservices are also likely to use microservices architecture for their applications led technologies that lend themselves to building distributed them to achieve most of their goals. In contrast, only five applications like containers, or are likely to have respondents (about 1%) tried microservices and decided experience creating cultural and technical change using not to use them. DevOps methodologies to further decrease time-to-market. RECOMMENDATIONS RECOMMENDATIONS The majority of microservices users say that they are Those using DevOps or Continuous Delivery methodologies worth the investment and helped them accomplish their may find that microservices and containers, while goals. If an organization is developing a new application, using a microservices architecture may be the best way requiring a lot of training and setup, may help teams to create additional value and future-proof software. deploy code faster than before. It is probably easier to Before developing microservices, determine if they fit your start experimenting with a new application or product, application’s use case. Does it need to be easily scalable? and leave the refactoring of legacy apps for later once an Does it require several different components that would be organization can

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    49 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us