diff --git a/reference/html/index.html b/reference/html/index.html index a6dc0e30..f562b006 100644 --- a/reference/html/index.html +++ b/reference/html/index.html @@ -139,7 +139,7 @@ $(addBlockSwitches);
  • 2.6. Spring WebFlux WebClient as a Load Balancer Client
  • @@ -840,7 +840,7 @@ public class MyClass {

    The URI needs to use a virtual host name (that is, a service name, not a host name). -The Ribbon client is used to create a full physical address.

    +The Ribbon client or Spring Cloud LoadBalancer is used to create a full physical address.

    @@ -853,10 +853,13 @@ If you want to use a @LoadBalanced WebClient.Builder, you need to h implementation in the classpath. It is recommended that you add the org.springframework.cloud:spring-cloud-starter-loadbalancer dependency to your project. Then, ReactiveLoadBalancer will be used underneath. -Alternatively, this functionality will also work with spring-cloud-starter-netflix-ribbon, but the request +Alternatively, this functionality will also work with spring-cloud-starter-netflix-ribbon, but the request will be handled by a non-reactive LoadBalancerClient under the hood. Additionally, spring-cloud-starter-netflix-ribbon is already in maintenance mode, so we do not recommend adding it to new projects. +If you have both spring-cloud-starter-loadbalancer and spring-cloud-starter-netflix-ribbon +in your classpath, Ribbon will be used by default. In order to switch to Spring Cloud LoadBalancer, +set the value of spring.cloud.loadbalancer.ribbon.enabled to false.
    @@ -1055,11 +1058,26 @@ The following example shows how to configure a WebClient to use rea

    The URI needs to use a virtual host name (that is, a service name, not a host name). -The ReactorLoadBalancerClient is used to create a full physical address.

    +The ReactorLoadBalancer is used to create a full physical address.

    +
    +
    + + + + + +
    + + +If you have spring-cloud-netflix-ribbon in your classpath, LoadBalancerExchangeFilterFunction +will be used by default to maintain backward compatibility. In order to be able to use +ReactorLoadBalancerExchangeFilterFunction, set the value of spring.cloud.loadbalancer.ribbon.enabled property +to false. +
    -

    2.6.2. Spring WebFlux WebClient with non-reactive Load Balancer Client

    +

    2.6.2. Spring WebFlux WebClient with non-reactive Load Balancer Client

    If you you don’t have org.springframework.cloud:spring-cloud-starter-loadbalancer in your project, but you do have spring-cloud-starter-netflix-ribbon, you can still use WebClient with LoadBalancerClient. LoadBalancerExchangeFilterFunction diff --git a/reference/html/spring-cloud-commons.html b/reference/html/spring-cloud-commons.html index a6dc0e30..f562b006 100644 --- a/reference/html/spring-cloud-commons.html +++ b/reference/html/spring-cloud-commons.html @@ -139,7 +139,7 @@ $(addBlockSwitches);

  • 2.6. Spring WebFlux WebClient as a Load Balancer Client
  • @@ -840,7 +840,7 @@ public class MyClass {

    The URI needs to use a virtual host name (that is, a service name, not a host name). -The Ribbon client is used to create a full physical address.

    +The Ribbon client or Spring Cloud LoadBalancer is used to create a full physical address.

    @@ -853,10 +853,13 @@ If you want to use a @LoadBalanced WebClient.Builder, you need to h implementation in the classpath. It is recommended that you add the org.springframework.cloud:spring-cloud-starter-loadbalancer dependency to your project. Then, ReactiveLoadBalancer will be used underneath. -Alternatively, this functionality will also work with spring-cloud-starter-netflix-ribbon, but the request +Alternatively, this functionality will also work with spring-cloud-starter-netflix-ribbon, but the request will be handled by a non-reactive LoadBalancerClient under the hood. Additionally, spring-cloud-starter-netflix-ribbon is already in maintenance mode, so we do not recommend adding it to new projects. +If you have both spring-cloud-starter-loadbalancer and spring-cloud-starter-netflix-ribbon +in your classpath, Ribbon will be used by default. In order to switch to Spring Cloud LoadBalancer, +set the value of spring.cloud.loadbalancer.ribbon.enabled to false.
    @@ -1055,11 +1058,26 @@ The following example shows how to configure a WebClient to use rea

    The URI needs to use a virtual host name (that is, a service name, not a host name). -The ReactorLoadBalancerClient is used to create a full physical address.

    +The ReactorLoadBalancer is used to create a full physical address.

    +
    +
    + + + + + +
    + + +If you have spring-cloud-netflix-ribbon in your classpath, LoadBalancerExchangeFilterFunction +will be used by default to maintain backward compatibility. In order to be able to use +ReactorLoadBalancerExchangeFilterFunction, set the value of spring.cloud.loadbalancer.ribbon.enabled property +to false. +
    -

    2.6.2. Spring WebFlux WebClient with non-reactive Load Balancer Client

    +

    2.6.2. Spring WebFlux WebClient with non-reactive Load Balancer Client

    If you you don’t have org.springframework.cloud:spring-cloud-starter-loadbalancer in your project, but you do have spring-cloud-starter-netflix-ribbon, you can still use WebClient with LoadBalancerClient. LoadBalancerExchangeFilterFunction