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
4
votes
2 answers

Ribbon with Spring Cloud and Eureka java.lang.IllegalStateException: No instances available for localhost

I am using org.springframework.cloud spring-cloud-netflix 1.2.3.RELEASE pom import My main…
atiwari54
  • 51
  • 1
  • 2
  • 7
4
votes
1 answer

Zuul dynamic routing using pre filter and eureka

I am creating a sample consist of 3 (Service A, Service B and Service C) microservices. All the 3 services along with the gateway service ( zuul ) get registered with eureka. My use case is : 1) All the request will enter the system via gateway…
4
votes
2 answers

Hit external IPs from microservices using Spring Cloud

I'm trying to hit external services from one of my microservices. I'm using Spring Cloud, Eureka for the registry and Spring boot as main framework. Map urlVariables = new HashMap<>(); urlVariables.put("ip_address", IP); …
4
votes
1 answer

Replacing RibbonRoutingFilter for my zuul application

I would like to replace the existing RibbonRoutingFilter that is embedded in the zuul package with a custom one that has additional characteristics/customizations. Is it just a case of creating my own and giving it is priority that triggers ahead of…
EvilJinious1
  • 2,773
  • 6
  • 43
  • 63
3
votes
0 answers

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 service discovery) Each service instance is able to…
VB_
  • 45,112
  • 42
  • 145
  • 293
3
votes
1 answer

Automatic retries with Ribbon (without zuul): not working + wrong documentation?

In the latest versions of spring cloud Netflix's official documentation (for example 2.0.2.RELEASE, the last GA version) it states: When Spring Retry is present, load-balanced RestTemplates, Feign, and Zuul automatically retry any failed requests…
3
votes
1 answer

RxNetty reuse the connection

I want to use Netflix-Ribbon as TCP client load balancer without Spring Cloud,and i write test code. public class App implements Runnable { public static String msg = "hello world"; public BaseLoadBalancer lb; public RxClient
obgnaw
  • 3,007
  • 11
  • 25
3
votes
1 answer

Spring Cloud Netflix: What is the difference between ribbon.NIWSServerListClassName and ribbon.listOfServers?

I'm using Ribbon along with Eureka. My application is able to call the other-service in both the following configurations. I'm using NIWSServerListClassName in first and listOfServers in second. other-service: ribbon: eureka: enabled:…
3
votes
3 answers

Spring Cloud Feign/Ribbon with corporate proxy

I want to consume a REST service from the outside world behind a corporate proxy with authentication. How do I configure Spring Boot + Spring Cloud Feign/Ribbon to use our proxy?
3
votes
1 answer

Distinguish between Connect Timeout and Read Timeout with okhttp

I am using okhttp with ribbon using spring. I wish to retry on another service instance on connect timeout but not on read timeout(for obvious reasons). This retry will be handled by a custom ribbon retry handler. But to do the above, I need to…
Tanmay
  • 366
  • 1
  • 4
  • 22
3
votes
0 answers

Deploying Eureka/ribbon code to Cloud Foundry

I want to deploy Spring Cloud (Eureka/ribbon) code to Cloud Foundry. Ribbon will do the client side load balancing, so I don't need the Cloud Foundry router. How to I tell Cloud Foundry not to use its router?
Jim
  • 81
  • 1
  • 6
3
votes
2 answers

Does Eureka and Ribbon work for non spring boot application?

I am rewriting a Spring MVC system. The system is something like this in simple: [Gateway<->Backend Services<->Databases], where Gateway is a controller simply for authentication and forwarding the requests to Backend services. The Backend services…
3
votes
1 answer

How to manually call a microservice from a JHIPSTER gateway repository or service

I'm new to Jhipster, and wondering if it's possible to manually call a microservices from the gateway code using a RestTemplate or something else. My first idea was to call the gateway itself... but I'm not sure it's a good idea. My second idea was…
ALansmanne
  • 271
  • 1
  • 6
  • 17
3
votes
1 answer

how monolith spring 3 application will communicate with microservice?

I have one monolith spring web application developed using spring 3.1 and spring-security 3.1 with Java 7 and it is deployed on tomcat 7. Now I have a new requirement where I have to create a micro-service for a new module using spring boot with…
ManojP
  • 6,113
  • 2
  • 37
  • 49
3
votes
0 answers

Spring Cloud Consul + Ribbon Across Multiple Data Centers?

Currently I am using Spring Cloud Consul for service discovery, and would like to use Ribbon to load balance service calls. I was able to successfully load balance across all instances of a service within the same DC (using RestTemplate), but when…
1 2
3
15 16