Spring Docs

Spring cloud docs

    • Spring Cloud Commons
      • Cloud Native Applications
        • Spring Cloud Context: Application Context Services
          • The Bootstrap Application Context
          • Application Context Hierarchies
          • Changing The Location Of Bootstrap Properties
          • Overriding The Values Of Remote Properties
          • Customizing The Bootstrap Configuration
          • Customizing The Bootstrap Property Sources
          • Logging Configuration
          • Environment Changes
          • Refresh Scope
          • Encryption And Decryption
          • Endpoints
        • Spring Cloud Commons: Common Abstractions
          • The @Enablediscoveryclient Annotation
          • Serviceregistry
          • Spring Resttemplate As A Load Balancer Client
          • Spring Webclient As A Load Balancer Client
          • Multiple Resttemplate Objects
          • Multiple Webclient Objects
          • Spring Webflux Webclient As A Load Balancer Client
          • Ignore Network Interfaces
          • Http Client Factories
          • Enabled Features
          • Spring Cloud Compatibility Verification
        • Spring Cloud Loadbalancer
          • Spring Cloud Loadbalancer Integrations
          • Spring Cloud Loadbalancer Caching
          • Zone Based Load Balancing
          • Spring Cloud Loadbalancer Starter
          • Passing Your Own Spring Cloud Loadbalancer Configuration
        • Spring Cloud Circuit Breaker
          • Introduction
          • Core Concepts
          • Configuration
        • Configuration Properties
    • Spring Cloud Netflix
      • Service Discovery: Eureka Clients
        • How To Include Eureka Client
        • Registering With Eureka
        • Authenticating With The Eureka Server
        • Status Page And Health Indicator
        • Registering A Secure Application
        • Eureka’S Health Checks
        • Eureka Metadata For Instances And Clients
        • Using The Eurekaclient
        • Alternatives To The Native Netflix Eurekaclient
        • Why Is It So Slow To Register A Service?
        • Zones
        • Refreshing Eureka Clients
      • Service Discovery: Eureka Server
        • How To Include Eureka Server
        • How To Run A Eureka Server
        • High Availability, Zones And Regions
        • Standalone Mode
        • Peer Awareness
        • When To Prefer Ip Address
        • Securing The Eureka Server
        • Disabling Ribbon With Eureka Server And Client Starters
        • Jdk 11 Support
      • Circuit Breaker: Spring Cloud Circuit Breaker With Hystrix
        • Disabling Spring Cloud Circuit Breaker Hystrix
        • Configuring Hystrix Circuit Breakers
      • Circuit Breaker: Hystrix Clients
        • How To Include Hystrix
        • Propagating The Security Context Or Using Spring Scopes
        • Hystrix Metrics Stream
      • Circuit Breaker: Hystrix Dashboard
      • Hystrix Timeouts And Ribbon Clients
        • How To Include The Hystrix Dashboard
        • Turbine
        • Turbine Stream
      • Client Side Load Balancer: Ribbon
        • How To Include Ribbon
        • Customizing The Ribbon Client
        • Customizing The Default For All Ribbon Clients
        • Customizing The Ribbon Client By Setting Properties
        • Using Ribbon With Eureka
        • Example: How To Use Ribbon Without Eureka
        • Example: Disable Eureka Use In Ribbon
        • Using The Ribbon Api Directly
        • Caching Of Ribbon Configuration
        • How To Configure Hystrix Thread Pools
        • How To Provide A Key To Ribbon’S Irule
      • External Configuration: Archaius
      • Router And Filter: Zuul
        • How To Include Zuul
        • Embedded Zuul Reverse Proxy
        • Zuul Http Client
        • Cookies And Sensitive Headers
        • Ignored Headers
        • Management Endpoints
        • Strangulation Patterns And Local Forwards
        • Uploading Files Through Zuul
        • Query String Encoding
        • Request Uri Encoding
        • Plain Embedded Zuul
        • Disable Zuul Filters
        • Providing Hystrix Fallbacks For Routes
        • Zuul Timeouts
        • Rewriting The Location Header
        • Enabling Cross Origin Requests
        • Metrics
        • Zuul Developer Guide
      • Polyglot Support With Sidecar
      • Retrying Failed Requests
        • Backoff Policies
        • Configuration
      • Http Clients
        • Modules In Maintenance Mode
      • Configuration Properties
    • Spring Cloud Consul
      • Install Consul
      • Consul Agent
      • Service Discovery With Consul
        • How To Activate
        • Registering With Consul
        • Http Health Check
        • Looking Up Services
        • Consul Catalog Watch
      • Distributed Configuration With Consul
        • How To Activate
        • Customizing
        • Config Watch
        • Yaml Or Properties With Config
        • Git2Consul With Config
        • Fail Fast
      • Consul Retry
      • Spring Cloud Bus With Consul
        • How To Activate
      • Circuit Breaker With Hystrix
      • Hystrix Metrics Aggregation With Turbine And Consul
      • Configuration Properties
    • Spring Cloud Zookeeper
      • Install Zookeeper
      • Service Discovery With Zookeeper
        • Activating
        • Registering With Zookeeper
        • Using The Discoveryclient
      • Using Spring Cloud Zookeeper With Spring Cloud Netflix Components
        • Ribbon With Zookeeper
      • Spring Cloud Zookeeper And Service Registry
        • Instance Status
      • Zookeeper Dependencies
        • Using The Zookeeper Dependencies
        • Activating Zookeeper Dependencies
        • Setting Up Zookeeper Dependencies
        • Configuring Spring Cloud Zookeeper Dependencies
      • Spring Cloud Zookeeper Dependency Watcher
        • Activating
        • Registering A Listener
        • Using The Presence Checker
      • Distributed Configuration With Zookeeper
        • Activating
        • Customizing
        • Access Control Lists (Acls)
      • Configuration Properties
    • Spring Cloud Gateway
      • How To Include Spring Cloud Gateway
      • Glossary
      • How It Works
      • Route Predicate Factories
        • The After Route Predicate Factory
        • The Before Route Predicate Factory
        • The Between Route Predicate Factory
        • The Cookie Route Predicate Factory
        • The Header Route Predicate Factory
        • The Host Route Predicate Factory
        • The Method Route Predicate Factory
        • The Path Route Predicate Factory
        • The Query Route Predicate Factory
        • The Remoteaddr Route Predicate Factory
        • The Weight Route Predicate Factory
      • Gatewayfilter Factories
        • The Addrequestheader Gatewayfilter Factory
        • The Addrequestparameter Gatewayfilter Factory
        • The Addresponseheader Gatewayfilter Factory
        • The Deduperesponseheader Gatewayfilter Factory
        • The Hystrix Gatewayfilter Factory
        • Spring Cloud Circuitbreaker Gatewayfilter Factory
        • The Fallbackheaders Gatewayfilter Factory
        • The Maprequestheader Gatewayfilter Factory
        • The Prefixpath Gatewayfilter Factory
        • The Preservehostheader Gatewayfilter Factory
        • The Requestratelimiter Gatewayfilter Factory
        • The Redirectto Gatewayfilter Factory
        • The Removehopbyhopheadersfilter Gatewayfilter Factory
        • The Removerequestheader Gatewayfilter Factory
        • Removeresponseheader Gatewayfilter Factory
        • The Removerequestparameter Gatewayfilter Factory
        • The Rewritepath Gatewayfilter Factory
        • Rewritelocationresponseheader Gatewayfilter Factory
        • The Rewriteresponseheader Gatewayfilter Factory
        • The Savesession Gatewayfilter Factory
        • The Secureheaders Gatewayfilter Factory
        • The Setpath Gatewayfilter Factory
        • The Setrequestheader Gatewayfilter Factory
        • The Setresponseheader Gatewayfilter Factory
        • The Setstatus Gatewayfilter Factory
        • The Stripprefix Gatewayfilter Factory
        • The Retry Gatewayfilter Factory
        • The Requestsize Gatewayfilter Factory
        • Modify A Request Body Gatewayfilter Factory
        • Modify A Response Body Gatewayfilter Factory
        • Default Filters
      • Global Filters
        • Combined Global Filter And Gatewayfilter Ordering
        • Forward Routing Filter
        • The Loadbalancerclient Filter
        • The Reactiveloadbalancerclientfilter
        • The Netty Routing Filter
        • The Netty Write Response Filter
        • The Routetorequesturl Filter
        • The Websocket Routing Filter
        • The Gateway Metrics Filter
        • Marking An Exchange As Routed
      • Tls And Ssl
        • Tls Handshake
      • Configuration
      • Route Metadata Configuration
      • Http Timeouts Configuration
        • Global Timeouts
        • Per Route Timeouts
        • Fluent Java Routes Api
        • The Discoveryclient Route Definition Locator
      • Reactor Netty Access Logs
      • Cors Configuration
      • Actuator Api
        • Verbose Actuator Format
        • Retrieving Route Filters
        • Refreshing The Route Cache
        • Retrieving The Routes Defined In The Gateway
        • Retrieving Information About A Particular Route
        • Creating And Deleting A Particular Route
        • Recap: The List Of All Endpoints
      • Troubleshooting
        • Log Levels
        • Wiretap
      • Developer Guide
        • Writing Custom Route Predicate Factories
        • Writing Custom Gatewayfilter Factories
        • Writing Custom Global Filters
        • Writing Custom Route Locators And Writers
      • Building A Simple Gateway By Using Spring Mvc Or Webflux
      • Configuration Properties
    • Spring Cloud Openfeign
      • Declarative Rest Client: Feign
        • How To Include Feign
        • Overriding Feign Defaults
        • Creating Feign Clients Manually
        • Feign Hystrix Support
        • Feign Hystrix Fallbacks
        • Feign And @Primary
        • Feign Inheritance Support
        • Feign Request/Response Compression
        • Feign Logging
        • Feign @Querymap Support
        • Hateoas Support
      • Configuration Properties
    • Spring Cloud Config
      • Quick Start
        • Client Side Usage
      • Spring Cloud Config Server
        • Environment Repository
        • Health Indicator
        • Security
        • Encryption And Decryption
        • Key Management
        • Creating A Key Store For Testing
        • Using Multiple Keys And Key Rotation
        • Serving Encrypted Properties
      • Serving Alternative Formats
      • Serving Plain Text
        • Git, Svn, And Native Backends
        • Aws S3
        • Decrypting Plain Text
      • Embedding The Config Server
      • Push Notifications And Spring Cloud Bus
      • Spring Cloud Config Client
        • Config First Bootstrap
        • Discovery First Bootstrap
        • Config Client Fail Fast
        • Config Client Retry
        • Locating Remote Configuration Resources
        • Specifying Multiple Urls For The Config Server
        • Configuring Timeouts
        • Security
        • Nested Keys In Vault
Spring cloud docs master
  • Spring Boot Docs
    • master
    • 1.5.19.RELEASE
  • Spring cloud docs
    • master
  • Spring data docs
    • master
  • Spring framework docs
    • master
  • Spring cloud docs
  • Spring Cloud Commons
  • Cloud Native Applications
  • Spring Cloud Loadbalancer
  • Spring Cloud Loadbalancer Integrations
Edit this Page

Spring Cloud LoadBalancer integrations

In order to make it easy to use Spring Cloud LoadBalancer, we provide ReactorLoadBalancerExchangeFilterFunction that can be used with WebClient and BlockingLoadBalancerClient that works with RestTemplate. You can see more information and examples of usage in the following sections:

  • Spring RestTemplate as a Load Balancer Client

  • Spring WebClient as a Load Balancer Client

  • Spring WebFlux WebClient with ReactorLoadBalancerExchangeFilterFunction

This page was built using the Antora default UI.

The source code for this UI is licensed under the terms of the MPL-2.0 license.