In this chapter, you have learned how to use REST APIs for inter-process communication. We have also found the way to find out about the registered and available services on service registration and the discovery server. We have explored the different libraries to consume REST APIs—RestTemplate, the OpenFeign, client and the newly introduced Java 11 HttpClient. At the end, trade-offs of different clients were explained.
In the next chapter, we'll learn how to write the gRPC-based services and establish the inter-process communication using a gRPC client.