In this section, we will run through the steps required for setting up the Eureka Server.
The full source code of this section is available under the chapter7.eurekaserver
project in the code files under https://github.com/rajeshrv/Spring5Microservice
. Note that the Eureka Server registration and refresh cycles takes up to 30 seconds. Hence, when running services and clients, wait for 40-50 seconds.
Start a new Spring Starter project and select Config Client, Eureka Server, and Actuator, as shown in the following screenshot:
The project structure of the Eureka server is shown in the following screenshot:
Get Spring 5.0 Microservices - Second Edition now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.