简体   繁体   English

我们可以使用带有 Spring boot 2.5.2 的 Ribbon 实现客户端负载平衡吗?

[英]Can we implement client side load balancing with Ribbon with Spring boot 2.5.2?

we are trying to upgrade our code from spring boot 1.x to spring boot 2.5.2 and we were taking advantage of ribbon for client side load balancing with older version of spring boot (1.x).我们正在尝试将我们的代码从 spring boot 1.x 升级到 spring boot 2.5.2,并且我们正在利用功能区与旧版本的 spring boot (1.x) 进行客户端负载平衡。

Now, when I'm referring to the spring cloud netflix documentation, they are still referring to 'ribbon' for client side load balancing here现在,当我提到 spring cloud netflix 文档时,他们在这里仍然指的是客户端负载平衡的“功能区”

https://spring.io/projects/spring-cloud-netflix#overview . https://spring.io/projects/spring-cloud-netflix#overview

But, some other place, spring documentation says, they dropped support for netflix ribbon in recent spring boot and i see the spring boot cloud starter is not pulling the ribbon dependencies when i switch to spring boot 2.5.2但是,在其他地方,spring 文档说,他们在最近的 Spring Boot 中放弃了对 netflix 功能区的支持,我看到当我切换到 Spring Boot 2.5.2 时,Spring Boot Cloud Starter 没有拉动功能区依赖项

Now, my question is, if i upgrade my Spring boot version from 1.x to 2.5.2 and add the netflix ribbon dependencies ( explicitly) can i still take advantage of ribbon for client side load balancing ?现在,我的问题是,如果我将 Spring Boot 版本从 1.x 升级到 2.5.2 并添加 netflix 功能区依赖项(明确),我是否仍然可以利用功能区进行客户端负载平衡?

All i'm trying to understand is, would spring boot 2.5.2 work with netflix ribbon (if i add the netflix ribbon dependencies by myself) ?我想了解的是,spring boot 2.5.2 是否可以与 netflix 功能区一起使用(如果我自己添加了 netflix 功能区依赖项)?

Spring Cloud Netflix Ribbon is no longer supported.不再支持 Spring Cloud Netflix Ribbon。 We suggest using Spring Cloud LoadBalancer as a replacement.我们建议使用 Spring Cloud LoadBalancer 作为替代。 You can find the documentation here and a guide here .你可以找到的文件在这里和导向这里 We suggest using start.spring.io to find out the versions of Spring Cloud compatible with the supported versions of Spring Boot.我们建议使用start.spring.io来查找与支持的 Spring Boot 版本兼容的 Spring Cloud 版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 spring-cloud和ribbon可以执行基于DNS的负载平衡吗? - Can spring-cloud and ribbon perform DNS-based load balancing? 实践中的客户端负载平衡似乎与服务器端负载平衡几乎相同。 是这样吗? - Client-side load balancing in practice seems to be almost the same as server-side load balancing. Is that so? 创建自定义 Spring Cloud Netflix Ribbon 客户端 - Create a Custom Spring Cloud Netflix Ribbon Client 在Spring Boot,Eureka,Zuul,Ribbon框架中很少获得ClientException和ZuulException - Rarely getting ClientException and ZuulException in spring boot, eureka, zuul, ribbon framework 我们可以为每个客户服务单独设置功能区吗? - Is it possible we set ribbon individually for each client service? Spring Cloud Sidecar负载平衡不会在失败时重试 - Spring Cloud Sidecar load balancing does not retry on failure 使用Spring Cloud Netflix OSS进行负载平衡微服务 - Load Balancing micro services using Spring cloud Netflix OSS Eureka和Ribbon是否适用于非弹簧靴应用? - Does Eureka and Ribbon work for non spring boot application? Spring Cloud Ribbon:负载均衡器规则配置不起作用 - Spring Cloud Ribbon: Load balancer rule configuration doesn't work 适用于Spring Cloud 2.1.3的版本功能区负载平衡器 - Compatible version Ribbon load balancer for spring cloud 2.1.3.RELEASE
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM