UP, DOWN<
Spring RestTemplate as a Load Balancer Client
-RestTemplate can be automatically configured to use ribbon.
+
RestTemplate can be automatically configured to use a Load-balancer client under the hood.
To create a load-balanced RestTemplate, create a RestTemplate @Bean and use the @LoadBalanced qualifier, as shown in the following example:
@@ -731,6 +731,35 @@ Individual applications must create it.
The Ribbon client is used to create a full physical address.
See RibbonAutoConfiguration for details of how the RestTemplate is set up.
+
+
+
+
+
+
+
+In order to use a load-balanced RestTemplate, you need to have a load-balancer implementation in your classpath.
+The recommended implementation is BlockingLoadBalancerClient
+- add org.springframework.cloud:spring-cloud-loadbalancer in order to use it.
+The
+RibbonLoadBalancerClient also can be used, but it’s now under maintenance and we do not recommend adding it to new projects.
+
+
+
+
+
+
+
+
+
+
+
+If you want to use BlockingLoadBalancerClient, make sure you do not have
+RibbonLoadBalancerClient in the project classpath, as for backward compatibility reasons, it will be used by default.
+
+
+
+
Spring WebClient as a Load Balancer Client
diff --git a/reference/html/spring-cloud-commons.html b/reference/html/spring-cloud-commons.html
index cfc2a512..b7f41607 100644
--- a/reference/html/spring-cloud-commons.html
+++ b/reference/html/spring-cloud-commons.html
@@ -687,7 +687,7 @@ For instance, Eureka’s supported statuses are UP, DOWN<
Spring RestTemplate as a Load Balancer Client
-RestTemplate can be automatically configured to use ribbon.
+
RestTemplate can be automatically configured to use a Load-balancer client under the hood.
To create a load-balanced RestTemplate, create a RestTemplate @Bean and use the @LoadBalanced qualifier, as shown in the following example:
@@ -731,6 +731,35 @@ Individual applications must create it.
The Ribbon client is used to create a full physical address.
See RibbonAutoConfiguration for details of how the RestTemplate is set up.
+
+
+
+
+
+
+
+In order to use a load-balanced RestTemplate, you need to have a load-balancer implementation in your classpath.
+The recommended implementation is BlockingLoadBalancerClient
+- add org.springframework.cloud:spring-cloud-loadbalancer in order to use it.
+The
+RibbonLoadBalancerClient also can be used, but it’s now under maintenance and we do not recommend adding it to new projects.
+
+
+
+
+
+
+
+
+
+
+
+If you want to use BlockingLoadBalancerClient, make sure you do not have
+RibbonLoadBalancerClient in the project classpath, as for backward compatibility reasons, it will be used by default.
+
+
+
+