Putting it all together - Developing a customer registration microservice example
So far, the examples we have seen are not more than just a simple hello world. Putting our learnings together, this section demonstrates an end-to-end customer profile microservice implementation. The customer profile microservices will demonstrate the interaction between different microservices. It will also demonstrate microservices with business logic and primitive data stores.
In this example, two microservices--Customer Profile Service and Customer Notification Service-- will be developed:
As shown in the preceding diagram, the customer profile microservice exposes methods to create, read, update, and delete a customer, and a registration service for registering a customer. The registration process applies certain business logic, saves the customer profile, and sends a message to the customer notification microservice. The customer notification microservice accepts the message sent by the registration service...