Using Spring Cloud Zookeeper with Spring Cloud Components
Feign、Spring Cloud Gateway 和 Spring Cloud LoadBalancer 均可与 Spring Cloud Zookeeper 配合使用。
Feign, Spring Cloud Gateway and Spring Cloud LoadBalancer all work with Spring Cloud Zookeeper.
Spring Cloud LoadBalancer with Zookeeper
Spring Cloud Zookeeper 提供了 Spring Cloud LoadBalancer ServiceInstanceListSupplier
的实现。在您使用 spring-cloud-starter-zookeeper-discovery
时,Spring Cloud LoadBalancer 默认配置为使用 ZookeeperServiceInstanceListSupplier
。
Spring Cloud Zookeeper provides an implementation of Spring Cloud LoadBalancer ServiceInstanceListSupplier
.
When you use the spring-cloud-starter-zookeeper-discovery
, Spring Cloud LoadBalancer is autoconfigured to use the
ZookeeperServiceInstanceListSupplier
by default.
如果您之前在 Zookeeper 中使用了 StickyRule,那么它在当前堆栈中的替代品是 SC LoadBalancer 中的 |
If you were previously using the StickyRule in Zookeeper, its replacement in the current stack
is the |