In Chapter 1, Software Architecture Patterns, we learned about monolithic and microservice-based architectures and discussed their benefits and drawbacks. In Chapter 2, Anatomy of Microservice Decomposition Services, we looked at the various ways of decomposing a monolithic application into a microservice-based application, and we also built an application based on a microservice architecture. In chapter 3, Microservices Deployment Patterns, we discussed various strategies for deploying microservice-based applications. In this chapter, we will take a look at how the services within a system communicate with one another.
In a monolithic application, there is no need for inter-service communication or internal business functionality. The components invoke other components by calling a language-level method or through a simple function call. However,...