Let us start this chapter with a recipe that will construct, organize, and build microservices based on the hrs
database. The login
, employee
, and department
domains will have separate and independent microservices catering all the GET
and POST
request transactions exposed as blocking, asynchronous and reactive RESTful that Spring 5 can support. This recipe will require concepts discussed in the previous chapters.
Create Maven projects for each domain responsibility and apply synchronous, asynchronous, and reactive implementation of services and controllers.
Let us create our first synchronous, asynchronous and reactive microservices by following these steps:
- Using Eclipse STS, create a Maven project for a Spring Boot application named
ch10-deptservice
that will represent a microservice for thedepartment
domain. Then, create a POM configuration which includes all the needed Spring Boot 2.0.0.M2 starter POM libraries, such...