In this section we will see how the edge server is added to the system landscape and how it affects the way external clients access the public APIs that the microservices expose. All incoming requests will now be routed through the edge server, as illustrated by the following diagram:
As we can see from the preceding diagram, external clients send all their requests to the edge server. The edge server can route the incoming requests based on the URL path. For example, requests with a URL that starts with /product-composite/ are routed to the Product Composite microservice, and a request with a URL that starts with /eureka/ is routed to the Discovery Server based on Netflix Eureka.
In the previous Chapter 9, Adding Service Discovery Using Netflix Eureka and Ribbon, we exposed both the product-composite service and the discovery...