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
0
votes
1 answer

Spring Service Discovery Restriction

I followed this page: https://spring.io/guides/gs/service-registration-and-discovery/ and so far no problem. I can register Spring services which are automatically discovered. I need now to discover services accessible on a specific domain (to…
hublo
  • 1,010
  • 2
  • 12
  • 33
0
votes
0 answers

Request scoped beans in SpringClientFactory AppContext's

I am using a SpringClientFactory to create a Ribbon client with a custom com.netflix.niws.client.http.RestClient. This RestClient is wired with a @Bean that is request scoped (that is, @Scope("request")). This is all done as a part of the Brixton…
nicholas.hauschild
  • 42,483
  • 9
  • 127
  • 120
0
votes
2 answers

Startup timestamp in Eureka metadata

We're using Spring Cloud Angel.SR6 with Netflix Eureka and Spring Config Server. One of our microservices is a distributed system that uses Eureka as a discovery mechanism to find peers. In order to start up the system in the correct way when…
Jon Ekdahl
  • 382
  • 1
  • 3
  • 11
0
votes
1 answer

Do Ldap Groups as Scopes work for cloud foundry uaa authorization_code grant type?

I'm trying to get a micro-services environment working. I've already setup the config-server, eureka-server, zuul-server, and service. To handle security I have a Cloud Foundry's UAA server installed and running. Following the docs on how to setup…
0
votes
1 answer

Links to another service with HATEOAS

I'm building microservices using Spring Cloud Netflix, Spring Data JPA, and Spring Data REST. The responses of my services are REST-HATEOAS formatted. Is there a way to automatically add links to other microservices in my responses? For example,…
Nicolas
  • 1,812
  • 3
  • 19
  • 43
0
votes
0 answers

How to enable/disable ribbon load balancing depending on http response code?

Using netflix ribbon sometimes you do not want to load-balance, for example you do not want loadbalancing if response code is 404, but for 503 you do want that. Now the question is how to configure ribbon to setup rules like I mentioned above?
Keyhan
  • 2,370
  • 2
  • 19
  • 22
0
votes
1 answer

Netflix Zuul on one port and Hystrix Dashboard on another

I am using Netflix Zuul with Spring Boot for routing/proxy purposes. It listens on a port defined in a application.yml: server: port: ${port:8080} I also wanted to use Hystrix for circuit breaking as well as having the Hystrix dashboard. I…
0
votes
1 answer

Netflix Turbine - Server port automatically update to -1

It seems a simple question, but I'm racking my brain with this: I have a Netflix Turbine being configured to run on a port 8989, but suddenly this log appears when starting this module: INFO 17007 --- [main] c.n.e.EurekaDiscoveryClientConfiguration…
0
votes
1 answer

How to get Ribbon to use IPs instead of hostnames

I've created a Zuul server using the '@EnableZuulProxy' annotation. So I'm using Spring Cloud. I can see it getting its info from Eureka and it is using Ribbon to executed requests. So far so good. But it is using the hostnames from the Eureka data…
Henry Wilson
  • 141
  • 1
  • 3
  • 11
0
votes
1 answer

annotation @RibbonClient not work together with RestTemplate

I am trying Ribbon configuration with RestTemplate based on bookmark service example but without luck, here is my code: @SpringBootApplication @RestController @RibbonClient(name = "foo", configuration = SampleRibbonConfiguration.class) public class…
Y.Huang
  • 119
  • 2
  • 11
0
votes
1 answer

How can I initialize a bean with @RefreshScope from Spring Boot Integration tests?

I've been scratching my head for a couple of hours. Spring Cloud Netflix autoconfigures an Eureka client. The following snippet comes from the sources of EurekaClientAutoConfiguration. @Bean(destroyMethod =…
Daniel Lavoie
  • 1,852
  • 1
  • 16
  • 19
0
votes
1 answer

Getting connections stats for circuits on Spring cloud zuul

I am running a few micro service instances that are functioning as edge routers and have the @EnableZuulProxy annotation. I have written a number of filters and these control the flow of requests into the system. What I would like to do is get the…
EvilJinious1
  • 2,773
  • 6
  • 43
  • 63
0
votes
0 answers

Does Spring Cloud Feign support placeholders in Spring MVC annotations?

I'd like to use a placeholder to define the path of a request as shown below. When I attempt the request its seems that spring-cloud-feign is unable to swap the placeholder with an application.yml value. @FeignClient("foo") public interface…
Newbie
  • 7,031
  • 9
  • 60
  • 85
0
votes
1 answer

Calling RestTemplate with Ribbon Interceptor

I am trying to use RestTemplate with @EnableDiscoveryClient which ends up calling the Ribbon Interceptor. Down the call stack, the following call ends up being…
Klaus
  • 2,328
  • 5
  • 41
  • 62
-1
votes
1 answer

What is the default load balancing mechanism used by Spring Cloud Eureka and is there a way to modify it?

I understand that Eureka is meant for service discovery, but what if I have multiple instances running for the same service registered in eureka server? Let's say I have three instances registered in Eureka server for the same service. Then, If I…
1 2 3
58
59