Questions tagged [netflix-ribbon]
Ribbon is a Inter Process Communication (remote procedure calls) library with built in software load balancers. The primary usage model involves REST calls with various serialization scheme support.
241
questions
0
votes
0
answers
17
views
Zuul Response filter getting blocked for sometime intermittently
We are using zuul 2.1.6 without eureka and we got the response back form down stream API but it's getting blocked for some reason in the response/outbound filter sometimes (not all the time). It's ...
0
votes
0
answers
12
views
Hystrix fallback not getting called when using along with Feign
I am creating a springboot application.I have 2 applications Producer and Consumer.
I am using Hystrix and Feign together. When I am calling wrong producer endpoint then fallback is not executing ...
0
votes
1
answer
61
views
Feign and Ribbon [Load balancer does not contain an instance for the service <Service_Name>]
In pom.xml file
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
1
answer
94
views
How can we implement client-side load balancing with reactive netty?
My microservice is required to direct requests between 2 different servers via TCP connection. Using the current TCPClient, we are required to provide the host & port numbers which means that I ...
0
votes
0
answers
15
views
Is there a solution if a ribbon client-side load balancing is down?
Based on my understanding of load-balancing, requests are forwarded to multiple instances of a service so that if one service is down, it will be redirected to one that is available.
I have created a ...
0
votes
1
answer
73
views
RibbonClient is not working. Field required a bean of type that could not be found
Error : Field proxy in com.project.currencyconversionservice.CurrencyConversionController required a bean of type 'com.project.currencyconversionservice.CurrencyExchangeServiceProxy' that could not be ...
0
votes
0
answers
22
views
the property ribbon.PoolMaxThreads doesn't work?
1.what does ribbon.PoolMaxThreads mean? it means ribbon has its own thread pools?
2.whether ribbon.PoolMaxThreads configure hystrix's thread pool?
I use zuul1 as the API Gateway of my application, and ...
0
votes
1
answer
485
views
How to specify Ribbon Configuration for a specific Feign client in a Spring Boot project having multiple Feign clients?
I have a spring boot project which is having two Feign Client's.
First Feign client (i.e. ServiceAProxy.class below), which will work on Service Discovery using Eureka or Consul.
@FeignClient(name=&...
0
votes
1
answer
2k
views
required a bean of type 'org.springframework.cloud.netflix.ribbon.SpringClientFactory' that could not be found
I have this test project which I would like to migrate to more recent version:
@Configuration
public class LoadbalancerConfig extends RibbonLoadBalancerClient {
public LoadbalancerConfig(...
1
vote
1
answer
1k
views
Can one setup Spring Boot 2.6 and Spring Cloud 2021.x to use Ribbon and Hystrix with Spring WebClient and Feign?
I know that Spring Cloud at some version (3.0?) dropped direct support for some Netflix libraries like Ribbon or Hystrix. Now I'm trying to make a smooth migration of around 20 microservices running ...
1
vote
0
answers
2k
views
Spring boot 2.5.4 / Spring cloud 2020.0.3 netflix ribbon conflict
While trying to upgrade from Spring boot 2.0.3 to 2.5.4, there's an issue with the RibbonLoadBalancerClient class from the spring-cloud-netflix-ribbon dependency which implements the ...
2
votes
1
answer
117
views
Filter services based on Eureka metadata with Zuul
We use Spring Cloud Netflix Zuul along with Eureka in our environment.
I understand Ribbon obtains the server list from Eureka for specified serviceId. In our case we have 4 containers of a service, ...
1
vote
1
answer
940
views
Load balancing via Eureka, ribbon?
Does Eureka provide load balancing out of the box, is there a need for another
dependency?
Why Ribbon instead of Eureka?
Why use load balancing via an API gateway?
spring-cloud-starter-loadbalancer, ...
6
votes
3
answers
10k
views
is there any difference in maven dependency for Netflix zuul and ribbon while upgrading to Spring boot 2.5.1 and spring cloud 2020.0.3
I am trying to upgrade my spring boot version from 2.1.5.RELEASE to 2.5.1, so I have changed the spring cloud version from Greenwich.RELEASE to 2020.0.3 according to release train Spring Boot ...
0
votes
0
answers
60
views
Can we customize or configure RPC or method call in place of endpoint(URL) for Netflix Ribbon or Spring Cloud Gateway?
In my project requirement, We need to distribute the load between two different micro services but call of the two microservices are not based on the endpoint(URL) but it is calling via it's SDK-...
0
votes
0
answers
298
views
Dynamic timeout for each api in spring eureka
I am facing timeout problem while downloading excel reports from my web application. The application is follows microservices archtecture build using spring-cloud. The Api timed out as i had set the ...
1
vote
0
answers
121
views
How to distribute Traffic between two micro services when it is called from third service based on TPS Percentage
Detailed Requirement : If there are two services say A and B and we want to distribute traffic in 10% & 90% basis then 10% of traffic should get routed to Service-A & 90% to Service-B from ...
0
votes
0
answers
412
views
Is there any way to configure the traffic load distribution based on percentage value
We have two micro services Say Service MS-AA & MS-BB and we have configured the load as 10% for MS-AA & 90% for MS-BB from a third microservice-XYZ
Does Netflix Ribbon can solve my problem? If ...
0
votes
1
answer
556
views
Deployment Context Based Vip Address in Spring Cloud Load Balancer
We are looking to of move to Spring Cloud Load Balancer to replace Ribbon. We use Eureka for service discovery and registration.
It looks like as of Spring Cloud Netflix 3.x, the ...
2
votes
0
answers
4k
views
Spring Cloud disable Ribbon is not working with Netflix Zuul dependency
We're using openfeign client in our spring application:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-openfeign-core</artifactId&...
0
votes
1
answer
321
views
ZUUL API GATEWAY RIBBONCLIENT REQUEST ERROR
l am trying to set an API Gateway for Microservices by using zuul api,eureka server, docker and docker compose.
l have a client like that.
@SpringBootApplication
@EnableFeignClients("com....
1
vote
0
answers
931
views
Ribbon failed fetching serverlist from Eureka
I'm trying to use ribbon together with eureka, but my consumer application failed with error below:
2021-01-07 19:02:20.441 INFO 2768 --- [io-10100-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : ...
1
vote
1
answer
6k
views
Providing URL for @FeignClient by service name in application.properties without load balancer
I want to use Feign client and provide URL in application.properties by service name.
Prerequisites:
I use Spring Boot and I have dependency to Feign from Spring Cloud:
<dependency>
<...
0
votes
1
answer
163
views
Custom AOP spring boot annotation with ribbon client blocking api call with return "1"
I have really poor experience with ribbon/eureka so forgive me if this is a stupid question:
I have two different microservice both connected to a discovery server, the first one calls the second ...
0
votes
1
answer
474
views
Spring Cloud - Use @LoadBalaneced RestTemplate in Zuul
I have a common Spring Cloud architecture in my project: eureka for service discovery, zuul as a reverse proxy and some microservices. I want to be able to access the microservices from zuul ...
2
votes
0
answers
251
views
SpringBoot RestTemplate timeout when using LoadBalanced
I am new to microservices and trying a demo project where I have one Customer micro service communicating with a CRUD micro service. I am using Eureka server for discovery. CRUD service has all the ...
-1
votes
1
answer
859
views
Getting zuul forwarding error.Connected all services with eureka
Zuul->application.properties
spring.application.name=zuul-api-gateway
server.port=6060
eureka.client.service-url.defaultZone = http://localhost:8761/eureka
eureka.instance.lease-expiration-...
0
votes
1
answer
233
views
Using Netflix Ribbon without Spring Boot in Legacy Application
I work at an application which is using Apache Mina as SFTP Server. The application itself is started as jar and sends rest requests to our backend.
I now want to use Netflix Ribbon without turning ...
0
votes
1
answer
454
views
RestTemplate getForEntity method throws null pointer exception
I am using RestTemplate with Ribbon Client @LoadBalanced. When I am calling my service - time-service(logical identifier) using Discovery Server, which is running on two instances, it is throwing null ...
1
vote
1
answer
159
views
How can I authenticate a Ribbon load balancer and Zuul proxy using a certificate?
I have a Spring application, that acts as an authentication proxy for two backend servers. A user will access the Spring application and be forwarded to the backend once he is successfully ...
7
votes
0
answers
5k
views
Spring Loadbalancer Configuration without a discovery server
I am currently working on a POC about client side load balancing.
I thought to use Spring Cloud Loadbalancer for that. But unlike Netflix Ribbon, I could not find a way to configure Spring Cloud ...
0
votes
1
answer
1k
views
How to remove Ribbon from Spring cloud Gateway
Currently I am using Ribbon with Spring cloud gateway for load balancing (I am not using a discovery server for this and have provided a set of IP addresses to Ribbon). But since Ribbon's days are ...
0
votes
1
answer
261
views
OAuth2RestTemplate with Ribbon + Eureka
I am working on microservices with Spring Cloud and Netflix OSS Eureka and Ribbon. I have another service running as oauth-server which provides OAuth2 token. All my microservices are registered with ...
-1
votes
1
answer
233
views
Difference between Kafka and load balancer (Ribbon)
I am new to Kafka.
I have existing microservice with spring-boot, ribbon, eruka, and zuul.
If I use Kafka as the messaging platform between each microservice call, does kafka provide load ...
0
votes
1
answer
55
views
Polyglot and Client Side Load Balancing
With the Cloud Foundry Feature, "Polyglot" for integrated Service Discovery and direct communication between service containers through the internal routes, How does the Load Balancing work? Is Cloud ...
0
votes
1
answer
134
views
Change port number in netflix ribbon
I have two services. One runs on port 8001 and it registered in eureka server, other runs on port 8002, and doesn't exist in eureka. I want to change port 8001 to 8002 in my local ribbon client. I ...
2
votes
3
answers
5k
views
How to fix no instance available for micro service using ribbon client
I am doing client side load balancing using ribbon client. i am implementing micro services spring boot 2.2.6.RELEASE.
I have CHAT-BOOK and USER-APP two micro services. I have added required ...
0
votes
1
answer
409
views
Why can't the load balancer find needed microservice using eureka?
The clientui serves webpages, using data from the 3 microservices.
I succesfully setted up ribbon to load balance between 2 instances of "microservice-produits". It works when i have this line ...
1
vote
0
answers
299
views
"com.netflix.client.ClientException: Load balancer does not have available server for client: forex-service"
I am new to microservices and just trying to create two microservices and register them to eureka. I am getting the below exception :
"com.netflix.client.ClientException: Load balancer does not have ...
0
votes
0
answers
207
views
Zuul Exception, Hystrix readed timeout
com.netflix.zuul.exception.ZuulException:
at org.springframework.cloud.netflix.zuul.filters.post.SendErrorFilter.findZuulException(SendErrorFilter.java:118) ~[spring-cloud-netflix-zuul-2.2.1....
0
votes
0
answers
851
views
KubernetesClientException - Operation Get failed
I am using Netflix Zuul for an edge service. Once in a while, the PollingServerListUpdater fails one update cycle with a timeout.
Otherwise it runs fine.
Could this be due to an unstable environment ...
0
votes
1
answer
1k
views
No qualifying bean of type 'com.netflix.client.config.IClientConfig' available:expected at least 1 bean which qualifies as autowire candidate
I'm creating a loadbalancer using Netflix round ribbon but i am not able to
auto wire IClientConfig this object.
I tried this also
@SpringBootApplication(scanBasePackages{"com.netflix.client.confg....
0
votes
1
answer
441
views
RestTemplate annotated by @LoadBalanced get wrong service address by service name from eureka sometimes
I use springcloud to build the system, including many microservices。 For some interface calls, I use resttemplate annotated by @LoadBalance to implement load balancing, and use eureka as a registry ...
3
votes
0
answers
403
views
Customize retries behaviour with Ribbon and Hystrix
Objective
I have a task to write API Gateway & load balancer with the following objectives:
Gateway/LB should redirect requests to instances of 3rd party service (no code change = client-side ...
0
votes
1
answer
585
views
Get list of all reachable servers regardless of Zone with Ribbon load balancer
We are having 4 zones, each zone having a zuul and UI service running. Ribbon is our load balancer across services.
We are achieving sticky session in Zuul with a custom load balancing rule as ...
0
votes
1
answer
2k
views
How to Temporarily Disable Eureka Server support in Ribbon and FeignClient
I have two micro-services(car-management-service & rent-management-service), in rent-management-service i'm calling car-management-service through Ribbon& FeignClient with the help of Eureka ...
1
vote
1
answer
1k
views
Netflix Ribbon throws No instances available for MY-MICROSERVICE exception
My application uses Eureka and Ribbon. I'm trying to get two microservices to talk to each other. Below is my method of concern.
@Autowired @LoadBalanced
private RestTemplate client;
@Autowired
...
1
vote
2
answers
2k
views
Error in pom.xml due to ribbon dependency
Getting the project build error message
Project build error:
'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-ribbon:
This my pom.xml file.
<?xml ...
0
votes
1
answer
3k
views
How to stop "DiscoveryClient: java.lang.IllegalStateException: Shutdown in progress" when Client Shutdown. Cannot use actuator
I create a client of one microservice that uses Eureka (and load balancing with ribbon) and then when I connected it works fine and finish ok microservice functions but when client works finish and ...
6
votes
1
answer
6k
views
Is it possible to use @FeignClient without ribbon?
I want to use @FeignClient(url=...) and make it go directly to the given url instead of picking up hosts from ribbon config.
I am aware that in spring-cloud feign comes together with ribbon and ...