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

Pros and cons of proxy design pattern


It may sound repetitive, but the proxy design pattern is one of the simplest and most useful patterns we can apply in the microservices architecture. As positive points, we can point out the following:

  • Practical data consumption by the application clients
  • Ease of implementation
  • Possibility of good programming techniques at proxy level, such as caching
  • Encapsulation of access to microservices
  • Control and diversion of requests

However, the proxy design pattern can lead to some problems, especially when we are not aware of good practices. The following are the problems related to the proxy design pattern:

  • Bottleneck
  • Inappropriate change of response
  • Obstruction in the identification of overload

Like all other design patterns, the proxy design pattern has both positives and negatives. The most important part is to understand the applicability and focus on good practices, so that this pattern works for the application properly.