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.

238 questions
1
vote
2 answers

Get the hostname/IP:port of the server to which the request is to be forwarded from Zuul+ribbon

I'm using Eureka for service discovery and Zuul+ribbon as reverse proxy and load balancer. I have 2 instances registered under Eureka as follows: MYSERVICE n/a (2) (2) UP (2) - MYHOST:MyService:8888 , MYHOST:MyService:9999 Below is my zuul…
Rakz
  • 156
  • 1
  • 3
  • 11
1
vote
0 answers

Spring Cloud : Route request to particular microservice instance

I am using ZUUL with Eureka. Lets say, I have two instances of microservice, say test. Their configuration is as follows spring: application: name: test server: port: 7878 eureka: instance: metadata-map: version: 1 and spring: …
Bhushan
  • 1,489
  • 3
  • 27
  • 45
1
vote
1 answer

Does Jhipster retry service calls

I'm using JHipster version 4.6.2 on my gateway. I have a JHipster registry and two instances of the same microservice. In the JHipster registry I can see that the gateway and both microservice instances are registered properly. I can configure, see…
1
vote
1 answer

Zuul - hitting a https resource

I am trying to a hit a service that is registered with Eureka. Obviously, my zuul project is also registered with Eureka. I am not sure what am I doing wrong but if someone can point me in the right direction that would be great. I thought setting…
1
vote
0 answers

Spring boot and Ribbon: How to maintain persistence?

I'm using Netflix Eureka and Ribbon as a discovery service and a loadbalancer. Ribbon should choose an available service for me, let's call that service "finder". What I want is to let ribbon choose a "finder" service, send a message to that…
alex_bl
  • 21
  • 4
1
vote
1 answer

How to capture log on each instance of the microservice through zuul

I have setup multiple instances of my microservice and registered to my eureka server. It uses ribbon for client side load balancing and uses zuul as gateway server. All usual stuff. I would like to capture the logs of which instance of my service…
1
vote
0 answers

Can ribbon balance load between multiple endpoints?

I have a Zuul+Ribbon gateway application. I have a legacy service running on localhost:8081 and a new service running on localhost:9000 There is a Find Item by ID API on both services, however on the legacy one its URI…
1
vote
1 answer

Feign with Ribbon: reset

We are trying to use Feign + Ribbon in one of our projects. In production code, we do not have a problem, but we have a few in JUnit tests. We are trying to simulate number of situations (failing services, normal runs, exceptions etc.), hence we…
malejpavouk
  • 4,297
  • 6
  • 41
  • 67
1
vote
0 answers

Spring Cloud Netflix Feign not working correcly

Trying to use Feign Client with Eureka and Ribbon- Have a service registered using Eureka with name-test-service. Was able to use Ribbon and Eureka successfully as follows- @Autowired private LoadBalancerClient loadBalancer; public void…
1
vote
1 answer

Springboot: Ribbon and Zuul

Do we need to configure both Ribbon and Zuul for Loadbalancing the microservices. From what I have seen Zuul is more of a conventional reverse-proxy loadbalancer and any request to services thro Zuul will automatically be loadbalanced and I do not…
Somasundaram Sekar
  • 5,244
  • 6
  • 43
  • 85
1
vote
1 answer

Unable to configure @FeignClient with list of servers

I am unable to configure a @FeignClient with a list of servers to use. I am using Spring Cloud Netflix, but this particular service (foo-service) does not register with Eureka. For this reason I need to configure a list of servers, for foo-service…
1
vote
1 answer

Feign client execution failure: java.lang.reflect.InvocationTargetException

I have problem in inter-service communication load balancing. I am using spring (1.4.2), spring cloud with netflixOSS. I have two services shoppingcart-service and user-service. Here is ShoppingCartController from shopppingcart-service…
branko terzic
  • 654
  • 1
  • 8
  • 27
1
vote
1 answer

How to create Bean with IClientConfig

How do I create a @Bean for IClientConfig? I need to initialize the ribbonLoadBalancingHttpClient bean with a pre-configured httpclient delegate argument. The problem is that the constructor required by the IClientConfig bean is not loaded in the…
Jordan Borisov
  • 1,603
  • 6
  • 34
  • 69
1
vote
2 answers

How to call external non REST API from a spring cloud micro-service that use eureka to call other internal micro-service?

In our project we use Spring cloud + Eureka as service registry. When we use the ribbon client to call internal micro-services, all URL are resolved via Eureka ... that's a problem to call external URLs. As external API are old fashioned usage of…
1
vote
0 answers

How to dynamically route the request from client to microservices

Here is what I am trying to achieve : 1. I have a sets of micro-service of same type with different versions. E.g. set-1 of account(ms1-v1, ms2-v1, ms3-v1) and set-2 of account(ms1-v2, ms2-v2, ms3-v2) Here, all services in set-1 is of…