Creating a discovery service

Let's create a discovery service. As we know, a discovery service can solve the following problems of the cloud-native application:

  • How do services find each other?
  • What happens if we run multiple instances for a service?

Let's see the following diagram with the cloud-native problems:

We have already discussed the preceding diagram in detail in Chapter 5, Spring Cloud Netflix and Service Discovery.

Let's see the following Maven dependencies required for the discovery service:

<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.2.RELEASE</version> ...

Get Mastering Spring Boot 2.0 now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.