you choose to build an application with a microservice software architecture, you need to build your application as a set of microservices. In microservice-based architecture, all modules such as Order Service, Account Service, Book Service, and Shipping Service are built as separate and independent deployable artifacts. In this case, the multiple microservices each have an order details page. Here, an application's client interacts with the microservices to fetch order details as usual; however, each independent service will expose a set of endpoints for separate VMs or containers.
You will also need to decide on a method of client-to-application communication. This is necessary because the application is not a single artifact that has all of the modules already included. In this chapter, we will discuss the following two approaches to client-to-application communication:
Client-to-microservice communication
API gateways