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