Service discovery
We have already shown you how to configure balancing for our application. We know now that you have access to the virtual cluster IP address behind which the request is being balanced by OpenShift. However, how do we actually know how to connect to our services? We are going to learn that in the next topic. Before we do that, we must introduce our new services that will be talking to each other.
New services
In the first chapter, we briefly introduced the pet store application and described the services that constitute it. By now, we have used solely the catalog service in our examples. Now it's time to implement both the pricing service and customer gateway service. These services will serve as an example in this and the future chapters. Let's start with the pricing service.
The pricing service
The pricing service is very similar to catalog service. It can be used to obtain prices for a pet using their names. Let's go straight to the implementation. Initially, we have to create...