September 2019
Intermediate to advanced
668 pages
15h 59m
English
To be able to connect to the Eureka server, the microservices have the following configuration:
eureka: client: serviceUrl: defaultZone: http://localhost:8761/eureka/ initialInstanceInfoReplicationIntervalSeconds: 5 registryFetchIntervalSeconds: 5 instance: leaseRenewalIntervalInSeconds: 5 leaseExpirationDurationInSeconds: 5---spring.profiles: dockereureka.client.serviceUrl.defaultZone: http://eureka:8761/eureka/
The eureka.client.serviceUrl.defaultZone parameter is used to find the Eureka server, whereas the other parameters are used to minimize the startup time and the time it takes to deregister a microservice instance that is stopped.
The product-composite microservice, which uses the Eureka server ...