An order microservice built with python that uses Kafka as a message broker
To follow up with this guide, make sure you have the following installed
-
Clone the repo by running
git clone <repo_url>
-
In the docker-compose.yaml file, update the values of
GMAIL_USER
andGMAIL_PASSWORD
to match that of your email client. If you are using gmail, make sure to have less secure apps enabled -
A Makefile has been provided for easy setup so
cd
into thekafka-microservice
directory and run the commandmake up
to startup docker compose. This command builds the required containers and starts them up. The process might take a while so be patient. You should see logs from theconsumer_1
container when the setup is complete
- Now, make a
POST
request tohttp://localhost:5000
as seen below
- If all goes well, you should see the following output
- And the email recipient should get an email that looks like this
- Finally, kill the running processes with
ctrl+c
and runmake down
to remove the containers created.
Looking for a DevOps engineer or SRE to join your team? Reach out to me via email utibeabasiumanah6@gmail.com