Contract testing
As discussed in Chapter 7, Refactoring in Go, microservice architectures have many advantages over monolithic applications: the ability to scale system components independently, smaller code bases that are easier to maintain, and a system that is less prone to outages. However, the development and testing of working processes change when organizations adopt microservice architectures. This also brings challenges, alongside the vast benefits of microservice architectures.
Figure 8.4 depicts the three types of complexity that microservice architectures bring:
Figure 8.4 – The complexities of microservice architectures
Microservice architectures add complexity to every part of the development process:
- Development complexity: The source code of each microservice is often contained in its own separate code base or repository. This leads to complexity in the development process due to the following components:
- Service design must...