The Spring Cloud Load Balancer library allows us to create applications that communicate with other applications in a load-balanced fashion. Using any algorithm we want, we can easily implement load balancing when making remote service calls.
To illustrate, let's look at some example code. We'll start with a simple server application. The server will have a single HTTP endpoint and can be run as multiple instances.
Then, we'll create a client application that uses Spring Cloud Load Balancer to alternate requests between different instances of the server.