Overview of the Microservice Adapter pattern
The Microservice Adapter pattern allows us to add missing features, adapt one system to another, or migrate an existing application to an event-driven architecture model, to name a few possibilities. The Microservice Adapter pattern is similar to the Adapter pattern we covered in Chapter 11, Structural Patterns, but applied to a microservices system that uses event-driven architecture, instead of creating a class to adapt an object to another signature.
In the scenarios we cover in this section, the microservices system represented by the following diagram can be replaced by a standalone application as well; this pattern applies to all sorts of programs, not just microservices, which is why I abstracted away the details:
Figure 19.34: Microservices system representation used in the subsequent examples
Here are the examples we cover next and the possible usages of this pattern:
- Adapting an existing system to another...