Questions tagged [spring-cloud-netflix]

Spring-Cloud-Netflix provides Netflix OSS integrations for Spring Boot apps through autoconfiguration and binding to the Spring Environment and other Spring programming model idioms.

With a few simple annotations you can quickly enable and configure the common patterns inside your application and build large distributed systems with battle-tested Netflix components. The patterns provided include Service Discovery (Eureka), Circuit Breaker (Hystrix), Intelligent Routing (Zuul) and Client Side Load Balancing (Ribbon). Here you can find all the details.

879 questions
11
votes
1 answer

How do I make Spring Zuul High Available?

I would like to use Zuul as a Proxy for some REST services that I'm using. My question is: since I'm running it as a Spring Boot Application, is there any way to configure it for High Availability? EDIT: do I need to deploy my application inside an…
abierto
  • 1,447
  • 7
  • 29
  • 57
10
votes
4 answers

Spring environment, should I still use Hystrix in a new project?

Seems that Hystrix is near end of life and that Netflix stack is now a bit deprecated. We're building a stack for a brand new project and we need a circuit breaker, our default choice would have been Hystrix as it is well known and appreciated by…
Seb
  • 3,602
  • 8
  • 36
  • 52
10
votes
1 answer

Service discovery with spring webflux WebClient

Is it possible to use Ribbon and Eureka service discovery with spring webflux webclient? I tried this code but getting an error during integration test. reactor.core.Exceptions$ErrorCallbackNotImplemented: java.lang.IllegalArgumentException: URI is…
10
votes
2 answers

Ribbon load balancer with webclient differs from rest template one (not properly balanced)

I've tried to use WebClient with LoadBalancerExchangeFilterFunction: WebClient config: @Bean public WebClient myWebClient(final LoadBalancerExchangeFilterFunction lbFunction) { return WebClient.builder() .filter(lbFunction) …
10
votes
5 answers

Spring cloud with ribbon not ignoring down servers

I was followig spring guide on client side load balancing with eureka: https://spring.io/guides/gs/client-side-load-balancing/ But I'm getting a connection refuse exception when after having 3 server instances I shut down any of them. Instead of the…
10
votes
1 answer

Spring Cloud Netflix vs Kubernetes

I am trying to finally choose between Spring Cloud Netflix, Kubernetes and Swarm for building our microservices environment. They are all very cool and do some choice is very hard. I'll describe a little which kind of problems I want to solve. I…
10
votes
3 answers

Spring-Cloud Hystrix (fallback method wasn't found)

I'm trying to use hyst however when calling the save method, which makes a post with resttemplate, gives the following exception: com.netflix.hystrix.contrib.javanica.exception.FallbackDefinitionException: fallback method wasn't found:…
Tiago Costa
  • 1,004
  • 4
  • 17
  • 31
9
votes
1 answer

How to set custom max connection pool size in @feignclient configuration in spring

How to set custom max connection pool size in @feignclient configuration in spring , @FeignClient(name = "content-cms", configuration = ContentCmsServiceFeignConfig.class) public interface FeignService { @RequestMapping(value = "/test/", method =…
9
votes
3 answers

How to Disable Ribbon and just use FeignClient in Spring Cloud

I am aware that we can force FeignClient to use OkHttp instead of Ribbon by providing the url Ex. @FeignClient(url="serviceId", name="serviceId") I want the OkHttpClient to be used even when just the name is provided. Ex.…
9
votes
4 answers

Changing default port of eureka server using spring cloud

I got to spring-boot application, an eureka server and an eureka client. Here is my server configuration server: port: 8761 spring: application: name: eureka-server Here is my server code package fr.maif.eurekaserver; import…
9
votes
3 answers

what is the difference between netflix zuul server and netflix eureka server?

i have created two java spring-boot micro services they are 1) producer 2) consumer and i have used spring eureka server for service registration and discovery . it worked fine . then what is the use of Netflix Zuul.
user2396010
9
votes
3 answers

Spring Cloud Config Server not working with Docker compose

I have a spring cloud config server and packaged it as a docker image then I have spring cloud eureka server which is also packaged as docker image. When I run the two using docker compose I get the following error. discovery-service_1 | 2017-06-24…
9
votes
1 answer

Spring Cloud Zuul: Apply filter only to specific route

I'm using Spring Cloud's Zuul to proxy some API requests to a few external servers. The proxying itself works well, but each service requires a (different) token provided in the request header. I've successfully written a simple pre filter for each…
Xcelled
  • 2,084
  • 3
  • 22
  • 40
9
votes
1 answer

Netflix Ribbon: add/edit a LoadBalancerRule at runtime via Archaius

My goal is to be able to add/edit a Ribbon LoadBalancerRule at runtime via Archaius. myService.ribbon.NFLoadBalancerRuleClassName=com.netflix.loadbalancer.WeightedResponseTimeRule I'm trying to change the property NFLoadBalancerRuleClassName at…
user5566966
9
votes
1 answer

Zuul/Ribbon/Hystrix not retrying on different instance

Background I'm using Spring cloud Brixton.RC2, with Zuul and Eureka. I have one gateway service with @EnableZuulProxy and a book-service with a status method. Via configuration I can emulate work on the status method by sleeping a defined amount of…
1 2
3
58 59