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

The API - gateway project gets Eureka configuration information from the config server, how can it be registered with Eureka

In the file bootstrap.yml, the configuration is registered to Eureka information, as follows: eureka: client: service-url: defaultZone: http://user:password123@localhost:8761/eureka instance: prefer-ip-address: true The API -…
Michael wu
  • 21
  • 1
  • 1
  • 3
0
votes
1 answer

Tomcat based Zuul Proxy server does not forward correct client IP address (request.getRemoteAddr()) to end microservice

I have Spring Boot based micro-services environment setup with this configuration - nginx as the load balancer on centos 7. (configured to use x-forwarded-for) Spring boot powered API Gateway based on netflix zuul proxy server. Tomcat is embedded…
Munish Chandel
  • 3,572
  • 3
  • 24
  • 35
0
votes
1 answer

DiscoveryClient does not see a service from Eureka

When I ask eureka about the services it knows (localhost:8071/eureka/apps/), it says 3 are UP: 1 UP_3_ ROUTER
Tomasz
  • 988
  • 1
  • 9
  • 23
0
votes
1 answer

modifying request body doesn't work properly in zuul filter

I'm using spring cloud zuul as an API gateway, in the pre-filter, it decrypts the request body from front-end application, and then it modifies the request body as a decrypted JSON string to the downstream filters and back-end system. A request from…
0
votes
0 answers

HTTPS request not working with Tomcat and SpringBoot

I'm currently trying to get a reverse proxy up and running using Spring Boot and Zuul. The HTTP part is working already. However if I'm trying to request a site via HTTPS e.g. curl https://twitter.com then the request doesn't even reach my…
0
votes
1 answer

Feign Client ignoring request params

I created Feign Client: @FeignClient(name = "yandex",url="${yandex.ribbon.listOfServers}") public interface YandexMapsRestApiServiceClient { @RequestMapping(method = RequestMethod.GET, value = "{geoParam}") String …
0
votes
1 answer

Spring Zuul route strip one '/' in 'http://' of path param

I'm sorry for my English that might not express clearly my problem. I'm using thumbor for cropping image, e.g: http://thumbor-server/unsafe/300x200/http://192.168.99.100/images/image1.jpg I also use nginx to route request to thumbor, e.g. request…
0
votes
1 answer

After enabling Zuul proxy for the Spring boot app (We have set of miroservices), spring mvc interceptor doesnot work

Below is the Application.java. It has code to invoke the interceptor @EnableEurekaClient @SpringBootApplication @EnableZuulProxy public class Application extends WebMvcConfigurerAdapter { public static void main(String[] args) { …
Santosh
  • 325
  • 5
  • 19
0
votes
1 answer

Customizing Ribbon configuration with Zuul/Eureka

I am using Spring Cloud Netflix Zuul along with Eureka in our environment. I assume internally Zuul uses Ribbon to do the load balancing after obtaining the instance info from Eureka. I want to customize ribbon configuration when used with…
dexdeb
  • 53
  • 2
  • 6
0
votes
0 answers

HystrixCommand annotation is not working on type variables

I am using type variables in my abstract parent service class where I have some service methods. I am using @HystrixCommand annotation to use some fallback method. Here is my sample code @Service public abstract class MyAbstractParentClass
0
votes
0 answers

Feign with zookeeper succeeds with normal app but fails with JUnit

I use the zookeeper as the service register, and that's my problem: when I run it directly as a spring boot application it succeeds, instead when I use the junit to test it, it fails. The pom dependencies as as below:
0
votes
1 answer

How to configure Spring Cloud Eureka in Standalone HTTPS

I have used Eureka several times previously in HTTP (non-SSL). However, I am trying to configure the Eureka Server in Standalone mode. Unfortunately, the Server can't seem to register itself. The Client applications are able to register without a…
BPete
  • 43
  • 4
0
votes
1 answer

When closing a Eureka Clients, the RestTemplate with @LoadBalanced will continue call the closing service, how fixed it?

I use Eureka and Spring Cloud; Start 2 Eureka Clients; When closing a Eureka Clients, the Eureka client unregister from Eureka server need a little time (3-5 minutes); the RestTemplate with @LoadBalanced will continue call the closing service, how…
Ezreal
  • 111
  • 1
  • 6
0
votes
1 answer

Load Balancing micro services using Spring cloud Netflix OSS

I have a microservice built using Spring Boot and Netflix OSS. I have used Central config server, Eureka and Zuul. Because of scalability multiple instances of the services is running on different port. All the instances are registered in Eureka but…
0
votes
1 answer

how to customize the ribbon load balancer in Zuul server

As I understand the default load balancer using in Zuul proxy server as DynamicServerListLoadBalancer and it use ZoneAffinityServerListFilter rule to choose server. However, is there any way I can customize the loadbalancer used in zuul proxy…
Joey Trang
  • 1,105
  • 2
  • 23
  • 44