AWS Service registry for resilient mid-tier load balancing and failover.
Questions tagged [netflix-eureka]
1623 questions
140
votes
5 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?

YongJiang Zhang
- 1,989
- 2
- 20
- 25
94
votes
4 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…

codependent
- 23,193
- 31
- 166
- 308
60
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…

OD Street
- 1,067
- 3
- 14
- 21
46
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 Apache Zookeeper and Netflix Eureka.
Can anyone please give a comparison based on fundamental differences, those two services…

Supun Wijerathne
- 11,964
- 10
- 61
- 87
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
42
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…

lp1776
- 1,141
- 1
- 11
- 19
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…

Andrew Rutter
- 1,257
- 2
- 18
- 34
38
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…

zinc wombat
- 403
- 1
- 5
- 6
37
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?

Neo
- 2,196
- 5
- 32
- 58
36
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:…

user3006967
- 3,291
- 10
- 47
- 72
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
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
21
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…

Patrick Cornelissen
- 7,968
- 6
- 48
- 70
20
votes
11 answers
Cannot resolve org.springframework.cloud:spring-cloud-starter-netflix-eureka-client:unknown
I am following a tutorial to learn eureka server/client with spring boot
when I try to install maven dependencies in the pom.xml I get the error in the title
this is my pom.xml file:
user9398992
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…

Fahim Farook
- 1,482
- 2
- 14
- 38