Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/iamwarning/mail-delivery-service-with-kafka
- Owner: iamwarning
- License: mit
- Created: 2021-09-13T22:02:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T17:29:52.000Z (about 1 year ago)
- Last Synced: 2023-12-15T18:37:23.888Z (about 1 year ago)
- Topics: 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
- Language: Java
- Homepage:
- Size: 61.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
|
```