- Purpose of this project was build a micro-services integration to learn use KAFKA and RabbitMQ with nodeJS, user do request to theoretically get a certificate, kafka producer sends a message to kafka consumer, it generate the certified and return it, kafka consumer also send a message to RabbitMQ queue with certified information which is consumed and a email theoretically is sended warning user his certificate is ready!
git clone https://github.com/NathanCotrim/Kafka-RabbitmQ-NodeJS.git
or - (GitHub CLI)
gh repo clone NathanCotrim/Kafka-RabbitmQ-NodeJS
if you have not one of these dependencies: nodeJS, docker and docker-compose, execute install.sh shell script:
sh _install.sh
with all dependencies already, execute _run.sh shell script:
sh _run.sh
All Micro-Services will execute in background, to stop they just press C^!
This command up all containers, to stop they execute:
sudo docker-compose down
and rebuilt with:
sudo docker-compose up -d
curl http://localhost:3000/certificate -X POST
http://localhost:15672/
http://localhost:19000/
OBS: After you run, a file named nohup.out will be created at api folder, in there all api logs will appear!
If RabbitMQ queue do not auto create, you can do it at 'http://localhost:15672/':
- NodeJs - Server Environment
- Docker - Containers
- Docker-Compose - Containers-Group