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

How is Spring Cloud Gateway different from Zuul?

I have been using Zuul as the edge service and API Gateway. Recently I have noticed that Spring Cloud Platform release Spring Cloud Gateway. What is the difference between the two gateways? Why is the Zuul not extended to support the functionalities…
67
votes
7 answers

Using @Headers with dynamic values in Feign client + Spring Cloud (Brixton RC2)

Is it possible to set dynamic values to a header ? @FeignClient(name="Simple-Gateway") interface GatewayClient { @Headers("X-Auth-Token: {token}") @RequestMapping(method = RequestMethod.GET, value = "/gateway/test") String…
Hasnain
  • 1,879
  • 2
  • 13
  • 12
44
votes
5 answers

How to check two condition while using @ConditionalOnProperty or @ConditionalOnExpression

I need to check that two conditions are satisfied on a YAML property file, while creating a bean. How do I do that, as the @ConditionalOnProperty annotation supports only one property?
Zenith Kenneth
  • 493
  • 1
  • 5
  • 6
39
votes
6 answers

Eureka and Kubernetes

I am putting together a proof of concept to help identify gotchas using Spring Boot/Netflix OSS and Kubernetes together. This is also to prove out related technologies such as Prometheus and Graphana. I have a Eureka service setup which is starting…
36
votes
2 answers

Difference between @RibbonClient and @LoadBalanced

I understand @LoadBalanced indicates the Rest template should be based on Client Side Load Balancing using Ribbon and checks Eureka server for resolving the service name to host/port. What is the use of @RibbonClient. Is it to support native Ribbon…
jack
  • 803
  • 3
  • 15
  • 26
35
votes
11 answers

Load balancer does not have available server for client

I'm trying to use Feign client. Below is my feing client: import com.eprogrammerz.examples.domain.Movie; import org.springframework.cloud.netflix.feign.FeignClient; import org.springframework.web.bind.annotation.PathVariable; import…
Yogen Rai
  • 2,961
  • 3
  • 25
  • 37
28
votes
7 answers

How to Integration Test spring-cloud-netflix & Feign, using WireMock

I use Spring-Cloud-Netflix for communication between micro services. Let's say I have two services, Foo and Bar, and Foo consumes one of Bar's REST endpoints. I use an interface annotated with @FeignClient: @FeignClient public interface BarClient { …
Bastian Voigt
  • 5,311
  • 6
  • 47
  • 65
26
votes
3 answers

What is difference between fault tolerance and fault resilience?

I am reading Spring Cloud and NetFlix APIs. Many places, I read Fault Tolerance and Fault Resilience keyword. Please explain the difference.
Ashish Patel
  • 507
  • 1
  • 7
  • 14
24
votes
4 answers

How to eliminate the "Eureka may be incorrectly claiming instances are up when they're not" warning on Eureka Dashboard?

How to eliminate the following message on Eureka server dashboard? Will it cause any issue to my services? EMERGENCY! EUREKA MAY BE INCORRECTLY CLAIMING INSTANCES ARE UP WHEN THEY'RE NOT. RENEWALS ARE LESSER THAN THRESHOLD AND HENCE THE …
Krish
  • 1,804
  • 7
  • 37
  • 65
24
votes
2 answers

How to consume basic-authentication protected Restful web service via feign client

Thank you for your time. To make it simple, I created a example service like below: @RestController @RequestMapping("/") public class ComputeController { @GetMapping("/add") public int add(@RequestParam("left") int left,…
Zhuo YING
  • 972
  • 3
  • 11
  • 19
22
votes
4 answers

How to disable Eureka and Spring Cloud Config in a WebMvcTest?

I play with a simple Spring Boot application which registers itself in Eureka and uses spring cloud configuration to read some properties. Here it goes: @SpringBootApplication @EnableEurekaClient public class Application { public static void…
22
votes
5 answers

How to set custom Jackson ObjectMapper with Spring Cloud Netflix Feign

I'm running into a scenario where I need to define a one-off @FeignClient for a third party API. In this client I'd like to use a custom Jackson ObjectMapper that differs from my @Primary one. I know it is possible to override spring's feign…
Newbie
  • 7,031
  • 9
  • 60
  • 85
20
votes
5 answers

NoSuchMethodError: org.springframework.boot.web.servlet.error.ErrorController.getErrorPath() in latest spring-cloud-starter-netflix-zuul

My application use spring-boot version 2.5.0 and spring-cloud-starter-netflix-zuul 2.2.8.RELEASE With latest spring-boot version 2.5.0, getErrorPath() API is removed from ErrorController, but latest spring-cloud-starter-netflix-zuul 2.2.8.RELEASE…
Khoa Phung
  • 491
  • 3
  • 9
  • 20
19
votes
4 answers

List final list of properties - Spring Cloud Config Server

Spring Cloud Config Server accepts multiple profile and returns the properties for all the profiles when I access the /env endpoint of the application. The response lists the properties specific to each profile. If same property is present in 2…
Punter Vicky
  • 15,954
  • 56
  • 188
  • 315
17
votes
1 answer

Spring Cloud Feign Non blocking I/O or Asynchronous Call

I am developing microservices using Spring cloud platform where service1 calls multiple other micro services e.g. service2, service3, service 4 etc. These services can be called in parallel and service1 will aggregate the result. Can I use Spring…
Debopam
  • 3,198
  • 6
  • 41
  • 72
1
2 3
58 59