Setting up the Eureka Server

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:

Note ...

Get Spring 5.0 Microservices - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.