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

spring eureka security Batch update failure with HTTP status code 401

I study spring cloud eureka , cloud and they works finely . But after adding security in eureka service , it met some errors . All the code and errors details is in https://github.com/keryhu/eureka-security The eureka service…
9
votes
4 answers

How to exclude RequestInterceptor for an specific Spring Cloud Feign client?

I have a number of clients for which a "global" RequestInterceptor has been defined. For one of the clients I need this "global" interceptor to be excluded. Is it possible to override the full set of RequestInterceptors for a particular…
8
votes
4 answers

EnableEurekaClient import doesn't exist

I added spring-cloud-starter-netflix-eureka-client gradle depedency in my project and shrik the depedency. But when go use @EnableEurekaClient in my Main class it show me suggestion create @EnableEurekaClient annotation. Don't show any import file…
8
votes
1 answer

Client-side load balancing in practice seems to be almost the same as server-side load balancing. Is that so?

In server-side load balancing, the clients call an intermediate server, which then decides which instance of the actual server (or microservice) to call. In client-side load balancing also, the clients call an intermediate server (the API gateway -…
Daud
  • 7,429
  • 18
  • 68
  • 115
8
votes
2 answers

Microservices - Connection Pooling when connecting to a single legacy database

I am working on developing micro services for a monolithic application using spring boot + spring cloud + spring JDBC. Currently, the application is connecting to a single database through tomcat JNDI connection pool. We have a bottleneck here, not…
8
votes
3 answers

Why WireMock says that the Request not matches? Spring cloud contract

Wiremock logs that the following request not matches: WireMock : Request was not matched: { "url" : "/api/accounts?username=defaultuser", "absoluteUrl" :…
8
votes
3 answers

Define different Feign client implementations based on environment

I have a Spring boot application which uses Feign to call an external web service via Eureka. I'd like to be able to run the application using a mocked out implementation of the Feign interface, so I can run the application locally without…
8
votes
1 answer

Spring Cloud Config Server

I am using the Spring Cloud Config Server and able to detect the changes from the git repository and pass it to the Config clients. There are two ways, I have implemented it: After making changes (commit and push) in the git repository, I make a…
8
votes
4 answers

Config server and eureka server in same application: tries to connect to localhost:8761

I have a spring-boot application which I use to setup a spring cloud config server and a eureka server in development and testing environments. Strangely the application always tries to connect to localhost:8761, even though I have…
meva
  • 183
  • 1
  • 1
  • 16
8
votes
5 answers

Setting Hystrix timeout with environment variable

In order to change Hystrix's default request timeout (1000ms), one must set the following property : hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=2000 What is the corresponding environment variable ? I would…
Michael Técourt
  • 3,457
  • 1
  • 28
  • 45
8
votes
2 answers

Unable to get /hystrix.stream in Spring Cloud

I have created a microservice with following dependencies of Spring cloud version Camden.SR2. Spring Boot 1.4.1. http://localhost:8080/hystrix.stream is not responding. If I make the Spring Cloud version as Brixton.*(RELEASE, SR1,...), I get only…
jaks
  • 4,407
  • 9
  • 53
  • 68
8
votes
2 answers

Stream file download through RestTemplate

I have a large file download that is served by a RestController on one server, that I need to stream through a RestController on another server. When calling the end server directly the result streams fine. However when using RestTemplate to call…
ali2992
  • 129
  • 1
  • 2
  • 8
8
votes
2 answers

Feign: Retry depending on response status

I am currently using Spring Cloud and Feign to consume a Microservice in my application. Since it can happen, that a database connection or the like fails in a single service instance, making it return 500 HTTP status code, I want to make sure, that…
7
votes
4 answers

org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: origin - Spring Cloud

I am working on Spring Boot Cloud using GIT. Using Spring Boot 2.2.2.RELEASE version. SpringBootCloudChap2ConfigServerGitApplication.java @SpringBootApplication @EnableConfigServer @EnableAutoConfiguration public class…
PAA
  • 1
  • 46
  • 174
  • 282
7
votes
2 answers

Eureka 2.0 is discontinued. What service discovery platform is Netflix using now?

According to the Eureka wiki (https://github.com/Netflix/eureka/wiki), the Eureka 2.0 has been discontinued. The open source work on eureka 2.0 has been discontinued. The code base and artifacts that were released as part of the existing repository…