AWS Service registry for resilient mid-tier load balancing and failover.
Questions tagged [netflix-eureka]
1385 questions
116
votes
3 answers
What's the difference between EnableEurekaClient and EnableDiscoveryClient?
In some applications, I saw people are using EnableEurekaClient. And some other example applications are using EnableDiscoveryClient.
Is there any difference between these two?
![](../../users/profiles/953991.webp)
YongJiang Zhang
- 1,689
- 2
- 17
- 22
89
votes
3 answers
Understanding Spring Cloud Eureka Server self preservation and renew threshold
I am new to developing microservices, although I have been researching about it for a while, reading both Spring's docs and Netflix's.
I have started a simple project available on Github. It is basically a Eureka server (Archimedes) and three Eureka…
![](../../users/profiles/1729795.webp)
codependent
- 18,032
- 17
- 110
- 225
48
votes
5 answers
What is Eureka service, Eureka Client, Eureka instance and Eureka server
I'm learning spring cloud Netflix by reading this article, however I started to get confused by different terminology in this article, they are:
Eureka service. To my understand it's an ordinary service (specifically a Microservice) that running on…
![](../../users/profiles/4798447.webp)
OD Street
- 877
- 2
- 11
- 19
39
votes
3 answers
Eureka never unregisters a service
I'm currently facing an issue where Eureka does not unregister a registered service. I've pulled the Eureka server example straight from git hub and made only one change, eureka.enableSelfPreservation = false. My application.yml looks like…
![](../../users/profiles/4888744.webp)
lp1776
- 1,101
- 1
- 9
- 18
34
votes
2 answers
What is the role of Zookeeper vs Eureka for microservices?
I am going to implement the orchestration of a set of microservices in my application. Two widely using tools I found vs Apache Zookeeper and Netflix Eureka.
Can anyone please give me a comparison based on fundamental differences, those two services…
![](../../users/profiles/5715934.webp)
Supun Wijerathne
- 9,992
- 6
- 43
- 67
34
votes
5 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…
![](../../users/profiles/1232376.webp)
Andrew Rutter
- 1,087
- 1
- 14
- 31
34
votes
1 answer
How to config multiple Eureka Servers from client in Spring Cloud
From the spring doc, I see we can have peer eureka server together, so for Eureka1, in application.yml, I can have:
spring:
profiles: peer1
eureka:
instance:
hostname: peer1
client:
serviceUrl:
defaultZone:…
![](../../users/profiles/3006967.webp)
user3006967
- 2,551
- 9
- 36
- 58
33
votes
1 answer
Eureka Server: How to achieve high availability
I'm new to spring cloud. I've read this doc and it says the client application must specify a service url:
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
But what if localhost:8761 goes down?
![](../../users/profiles/2827406.webp)
Neo
- 2,006
- 4
- 27
- 57
27
votes
6 answers
How to write integration tests with spring-cloud-netflix and feign
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 {
…
![](../../users/profiles/820666.webp)
Bastian Voigt
- 4,617
- 5
- 34
- 61
26
votes
4 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?
![](../../users/profiles/4155333.webp)
Zenith Kenneth
- 309
- 1
- 4
- 6
25
votes
7 answers
How to selectively disable Eureka discovery client with Spring?
Is there a way to disable spring-boot eureka client registration based on the spring profile?
Currently I use the following annotations:
@Configuration
@EnableAutoConfiguration
@EnableDiscoveryClient
@EnableConfigServer
public class…
![](../../users/profiles/5870076.webp)
zinc wombat
- 273
- 1
- 4
- 6
20
votes
3 answers
Can Zuul Edge Server be used without Eureka / Ribbon
We have an infrastructure with service discovery and load balancing (i.e. server side with STM and weblogic cluster). Now we are in the process of refactoring into micro-services. We would need an API gateway which does basic routing to other…
![](../../users/profiles/2663572.webp)
Fahim Farook
- 1,408
- 2
- 12
- 33
20
votes
1 answer
How to route in between microservices using Spring Cloud & Netflix OSS
During our development of microservices using Spring Cloud, we started out using Zuul as a proxy for any connection from the outside to microservices, and for any microservice needing to contact another microservice.
After some time we made the…
![](../../users/profiles/1581325.webp)
Andreas Evers
- 254
- 2
- 10
18
votes
2 answers
Use Eureka despite having random external port of docker containers
I am writing an application that is composed of a few spring boot based microservices with a zuul based reverse proxy in the front-
It works when I start the services on my machine, but for server rollout I'd like to use docker for the services, but…
![](../../users/profiles/33624.webp)
Patrick Cornelissen
- 7,431
- 3
- 43
- 66
17
votes
1 answer
Spring Cloud: Canary Deployments with Zuul
I am getting started with Spring Cloud using Eureka and Zuul and had some questions around structuring blue/green and Canary deployments. So far, I have the basics worked out and have Eureka, Zuul, and a config server working as expected. What I am…
![](../../users/profiles/925141.webp)
Ryan J. McDonough
- 1,467
- 14
- 17