Building Microservices with Netflix OSS, Apache Kafka and Spring Boot – Part 3: Email Service

The next step of building our system is the email service. It will be a microservice configured to listen for the USER_CREATED_TOPIC that comes from the user service. Here we will build a UserDto and configure the Kafka consumer to transform the incoming payload to it. Similarly to the user microservice, here we will have an EmailService where the business logic will be executed. This EmailService will be using the UserDto from the payload, transform it to a Mail entity, save it in the database, and send the mail.

In addition to Eureka Discovery; JPA; H2; Kafka; Config Client; to the new Spring Boot project(ms-mail) in SPRING INITIALIZR, it is necessary to add aMail dependency as well. So the pom.xml looks like: https://goo.gl/ja3zDs #DataIntegration #ML

Subscribe To Newsletter

Sign up for my newsletter and get the latest technology news

2019 © Craig Brown PhD. All rights reserved.