Creating Spring Cloud Eureka

To enable service discovery in our infrastructure, we need to create an instance of a service which will act as a service discovery. The Spring Cloud Eureka server enables us to achieve this task. Let's create our project. Go to Spring Initializr and fill in the information, as shown in the following screenshot:

Take a look at the required dependencies. The Eureka server is the dependency which allows us to spin up a service discovery server.

Let's open the project on IDE and start to configure it. We will do this in the following section.

Get Spring 5.0 By Example 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.