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.
Questions tagged [netflix-ribbon]
238 questions
6
votes
1 answer
Netflix Ribbon and Hystrix Timeout
We are using Spring cloud in our project. We have several micro services and each has its own .yml file.
Below properies are only in zuul server
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 60000
ribbon:
…

Arun
- 2,312
- 5
- 24
- 33
5
votes
0 answers
Java - SpringBoot + Feign + Eureka (Feign not resolving URL from Eureka)
I have an Eureka server already running and I have a Microservice registered there (account-server -> Service B). The issue is when trying to use Feign from Service A. Let's say I have a class in Service A.
@FeignClient("account-server")
public…

Daniel Hernández
- 4,078
- 6
- 27
- 38
5
votes
2 answers
Spring cloud gateway gives connection closed prematurely
I am using spring cloud gateway as API gateway in my micro service setup with consul as service discovery.
In some case when API of some microservice take more then 2 minutes, gateway throws below error:
java.io.IOException: Connection closed…

Nitin
- 2,701
- 2
- 30
- 60
5
votes
1 answer
Accessing an internal micro service
I have two different micro services with eureka as service registry and now I am trying to call a micro service from another, resolving the endpoint with ribbon for client side load balancing.
Service A:
This service exposes an endpoint,…

John
- 101
- 1
- 3
5
votes
1 answer
How can I adjust load balancing rule by feign in spring cloud
As I know, feign include ribbon's function, and I prove it in my code.
When I use feign, the default rule is Round Robin Rule.
But how can I change the rule in my feign client code, is ribbon the only way?
Here is my code below, so please…

Gabriel.ge
- 168
- 3
- 15
5
votes
2 answers
How to do client side load balancing for discovered microservices in nodejs
We are trying to build a microservice with nodejs in an environment with other microservices written in java/spring boot.
The other microservices are using consul.io for service discovery and ribbon for client side load balancing. (that would be:…

NikhilWanpal
- 2,960
- 3
- 23
- 40
5
votes
1 answer
zuul proxy slowness - RibbonLoadBalancingHttpClient
Firstly, I have only basic knowledge in java. I have some microservices and currently using zuul/eureka to proxy the services.
Noticed that when calling the microservice directly the throughput is 3 times faster than when called through zuul. So…

Raman Sachdev
- 51
- 2
4
votes
1 answer
spring cloud gateway ribbon load balancing
Trying to get spring cloud gateway to load balance across a couple of instances of our application, but just can't figure it out. We don't have a service registry at present (no Eureka etc).
I've been trying to use ribbon and have a configuration…

Alex
- 587
- 11
- 31
4
votes
2 answers
How Ribbon retrieves the list of available instances of a service
I am using ribbon as a load balancer on API gateway and eureka server. When a client request comes to my API gateway, does it query the service registry each time to obtain the available instances of a service, or does Ribbon store the available…

Prashant
- 97
- 3
- 11
4
votes
1 answer
Spring cloud multiple RestTemplate
I am using spring cloud: Spring Boot Application with Eureka + Ribbon default configuration.
I am using 2 RestTemplate configurations, both are @LoadBalanced currently and both of them have the same UriTemplateHandler.
I declared both the…

Edna
- 41
- 1
- 3
4
votes
0 answers
Ribbon timeout on Zuul API Gateway for route
I have microservices with Zuul API Gateway. For discovery service I use Zookeeper.
In Zuul, I've set many routes for a single service, for example:
zuul:
sensitiveHeaders: Cookie,Set-Cookie
routes:
customer:
path: /customers/**
…

lukasz.kiszka
- 163
- 8
4
votes
2 answers
Loadbalancing fails when a server is down
I have written a simple set of micro-services with the following architecture:
For all, I have added spring-boot-starter-actuator in order to add /health endpoint.
In Zuul/Ribbon configuration I have added :
zuul:
ignoredServices: "*"
routes:
…

OlivierTerrien
- 2,451
- 1
- 19
- 31
4
votes
1 answer
Feign with RibbonClient and Consul discovery without Spring Cloud
I was trying to setup Feign to work with RibbonClient, something like MyService api = Feign.builder().client(RibbonClient.create()).target(MyService.class, "https://myAppProd");, where myAppProd is an application which I can see in Consul. Now, if I…

Turbut Alin
- 2,568
- 1
- 21
- 30
4
votes
1 answer
Netflix Ribbon with Spring Adding Multiple Clients
My application connects with multiple REST APIs.
I've been successful in adding a Ribbon Client/Load Balance to my application for one of those APIs with its own list of servers
Now I'd like to add a second client that would hold the server list for…

Guilherme Santos
- 121
- 7
4
votes
2 answers
Can I dynamic create a Feign Client or create an instance with a different name
I've defined an REST interface that has a different Spring Boot Application implementation using different spring.application.name (spring.application.name can not be the same in my business).
How can I only define a Feign Client, and can access all…

user7440148
- 43
- 1
- 5