Developing a comprehensive microservice example
So far, the examples we have considered are no more than just a simple "Hello world." Putting together what we have learned, this section demonstrates an end-to-end Customer Profile microservice implementation. The Customer Profile microservices will demonstrate interaction between different microservices. It also demonstrates microservices with business logic and primitive data stores.
In this example, two microservices, the Customer Profile and Customer Notification services, will be developed:
As shown in the diagram, the Customer Profile microservice exposes methods to create, read, update, and delete (CRUD) a customer and a registration service to register 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 and sends an e-mail message to the...