Implementing microservices
We have already defined the interfaces of the microservices in the previous section. Let's understand the data structures that we are going to use in their implementation. The following diagram depicts the data structures and their associations with each microservice:
As depicted in the preceding diagram, each microservice is associated with its own data structures, as well as some common data structures that are used to share data via messages.
The patient service uses the patient registration process, so it uses the RegistrationRequest
data type. The RegistrationEvent
data type is used to communicate a patient registration to the inspection service.
The inspection service receives the registration event and uses that to process the inspection tasks. It uses the InspectionRequest
data type to keep the inspection details. Once the inspection...