Book Image

Microservice Patterns and Best Practices

By : Vinicius Feitosa Pacheco
Book Image

Microservice Patterns and Best Practices

By: Vinicius Feitosa Pacheco

Overview of this book

Microservices are a hot trend in the development world right now. Many enterprises have adopted this approach to achieve agility and the continuous delivery of applications to gain a competitive advantage. This book will take you through different design patterns at different stages of the microservice application development along with their best practices. Microservice Patterns and Best Practices starts with the learning of microservices key concepts and showing how to make the right choices while designing microservices. You will then move onto internal microservices application patterns, such as caching strategy, asynchronism, CQRS and event sourcing, circuit breaker, and bulkheads. As you progress, you'll learn the design patterns of microservices. The book will guide you on where to use the perfect design pattern at the application development stage and how to break monolithic application into microservices. You will also be taken through the best practices and patterns involved while testing, securing, and deploying your microservice application. At the end of the book, you will easily be able to create interoperable microservices, which are testable and prepared for optimum performance.
Table of Contents (20 chapters)
Title Page
Dedication
Packt Upsell
Contributors
Preface
Index

Breaking a monolithic application into microservices


It is very important to know that in the beginning of the transition period, the impression is that we're in a maze without an end, and that it was a big mistake to start the migration process for microservices.

Working with frustrations and pressures is fundamental to successful migration. It is essential to have a plan from the beginning of the project, with clear targets and deadlines.

Obviously, respecting the deadline is the biggest challenge, especially when you walk through unknown terrain. However, it is very important that the deadlines are clearly outlined. This is very useful, as it helps us to know what stage the project is at.

There are some steps that may seem somewhat unnecessary or irrelevant. However, without these steps, any migration project for microservices fails badly. All the steps are described next, in the sequence in which they are to be carried out. These steps are as follows:

  1. Defining priorities
  2. Setting deadlines...