Hands-on with a microservice architecture example
I introduced microservices in Chapter 4, Reviewing the Historical Architecture Styles, at a high-level. Going through a full explanation is beyond the scope of this book. However, because microservices have become a serious trend, I wanted to dive a little deeper with a concrete example. The objective is to focus on the communication aspects, both synchronous and asynchronous, of the different services.
The following diagram illustrates a small application I built for you to taste the flavor of microservices:
In this example, we have three services:
- The order processing service, which is called by the client app that places orders. This client app could be a mobile app, a web app, or another API. In theory, you would put a BFF between the client and the order processing service, but I wanted to keep things as simple as possible.
Once the order processing...