Demonstrating Email Formatter
When everything is put together, the following commands can be used to start Apache Kafka, the User Registration
microservice, and the Email Formatter consumers.
There are several ways to run a Spring Boot application, and some of them are mentioned here:
- Running the Spring Boot application main class using an IDE
- Building a JAR or WAR file using the following Maven command and then running it
Building all dependencies
The following command can be used to build all the dependencies from the root directory spring-boot-2-email-formatter
:
$ mvn clean install
Running Apache Kafka
Apache Kafka needs to be running before producers and consumers can start communicating using it. Apache Kafka makes use of Apache ZooKeeper for maintaining configuration information, naming, providing distributed synchronization, and providing group services in a decentralized manner. The default Apache Kafka packaging downloaded in the technical requirements section will have Apache ZooKeeper...