Communication between services
In the case of a .NET monolithic application, if there is a need to access third-party components or external services, we use the HTTP client or another client framework to access the resources. In Chapter 2, Implementing Microservices, we developed the Product service in such a way that it would work independently. But this was not the case; we mandatorily required a few services to interact with each other.
So this is a challenge—having services communicate with each other. Both the Product service and Order service are hosted on separate servers. Both these servers are independent of each other, are based on REST, and have their own endpoints via which they communicate with each other (when a service interacts ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access