O'Reilly logo

Spring 5.0 Microservices - Second Edition by Rajesh R V

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required