In this chapter, we'll learn how REST is used for inter-process communication. In the process of REST-based inter-process communication, we will explore various REST clients—RestTemplate, the OpenFeign client, and the newly revamped HTTPClient from Java 11, for implementing the inter-process, also known as inter-service communication. This chapter will also elaborate on the use of load balancing for inter-process communication. It is very handy when more than one instance of a service is deployed in the environment.
This chapter is divided into the following sections:
- REST and inter-process communication
- Load balanced calls and RestTemplate implementation
- OpenFeign client implementation
- Java 11 HTTPClient
We'll use the existing code base of Chapter 5, Microservice Patterns – Part 1, and add new code in booking-service...