Skip to content

Build a broker-type system that consists of a microservice for sending emails to a queue service and another microservice that listens to a message pattern and sends it itself via SMTP so that it can be scaled and the message is not lost if the sending fails.

License

Notifications You must be signed in to change notification settings

avm-sistemas/nestjs-mail-broker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NestJs Mail Broker

Concept

Build a broker-type system that consists of a microservice for sending emails to a queue service and another microservice that listens to a message pattern and sends it itself via SMTP so that it can be scaled and the message is not lost if the sending fails.

Layers

Parameters to use RabbitMQ

   BROKER_ENGINE: rabbit
   BROKER_SERVER: localhost
   BROKER_PORT: 5672

Parameters to use Apache Kafka

   BROKER_ENGINE: kafka
   BROKER_SERVER: localhost
   BROKER_PORT: 9093

Build & Publish

    > git clone https://github.com/avmesquita/nestjs-mail-broker.git
    > cd nestjs-mail-broker    
    > docker-compose build --no-cache --pull
    > docker-compose -d up --force-recreate

Development Documentation

Resources

Broker Emitter

Broker Consumer

RabbitMQ Queues

Maildev Inbox

GitAds Sponsored

Sponsored by GitAds

About

Build a broker-type system that consists of a microservice for sending emails to a queue service and another microservice that listens to a message pattern and sends it itself via SMTP so that it can be scaled and the message is not lost if the sending fails.

Topics

Resources

License

Stars

Watchers

Forks