Another version of building microservices is through Spring Cloud Finchley modules that support creating a service registry of microservices with the Spring 5's reactive platform. This recipe will showcase how to build a cloud-based environment that can host instances or nodes of service instances in one server machine.
Using the latest Spring Cloud modules for Spring Boot 2.0.0.M2, let us create a Eureka server that will be responsible for hosting the Department
, Employee
, and Login
microservices to form one cloud of services that can only be distinguished through their HTTP ports.
Let us create our first Eureka cloud-based services through these steps:
- First, create a Spring Boot application that will be deployed and run as a Eureka server and nothing else. Name the project
ch10-eureka-hrs
. It should contain only the core starter POM dependencies such as thespring-boot-starter-webflux
since this will just...