Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iamwarning/mail-delivery-service-with-kafka

Mail delivery service with Apache Kafka and Spring boot.
https://github.com/iamwarning/mail-delivery-service-with-kafka

apache-kafka apache-kafka-consumer consumer docker docker-compose java-11 lombok mail-delivery microservice send-email send-mail smtp smtp-mail spring spring-boot

Last synced: about 2 months ago
JSON representation

Mail delivery service with Apache Kafka and Spring boot.

Awesome Lists containing this project

README

        

# Mail Delivery Service with Apache Kafka

## Prerequisites
* [Get docker](https://docs.docker.com/get-docker/)
* [Install docker compose](https://docs.docker.com/compose/install/)
* [Apache Kafka](https://kafka.apache.org/documentation/)
* [Kafdrop – Kafka Web UI ](https://github.com/obsidiandynamics/kafdrop)

## Usage

Create a network so that there is communication between services.

```shell
$ docker network create mail-delivery-network
```

Running local mail delivery service.
```shell
$ docker-compose up -d
```

Stop and remove mail delivery service.
```shell
$ docker-compose down
```

### Project structure

```shell
| .gitignore
| docker-compose.yml
| Dockerfile
| HELP.md
| mvnw
| mvnw.cmd
| pom.xml
| README.md
|
+---.mvn
| \---wrapper
| maven-wrapper.jar
| maven-wrapper.properties
| MavenWrapperDownloader.java
|
+---src
| +---main
| | +---java
| | | \---io
| | | \---jorgel
| | | \---sendemail
| | | | SendEmailApplication.java
| | | | ServletInitializer.java
| | | |
| | | +---config
| | | | KafkaConsumerConfig.java
| | | | TemplateConfig.java
| | | |
| | | +---models
| | | | Email.java
| | | |
| | | \---services
| | | | ConsumerService.java
| | | | EmailSenderService.java
| | | |
| | | \---impl
| | | EmailSenderServiceImpl.java
| | |
| | \---resources
| | | application.yml
| | |
| | +---static
| | \---templates
| | confirmation.html
| |
| \---test
| \---java
| \---io
| \---jorgel
| \---sendemail
| SendEmailApplicationTests.java
|
```