an example of two simple microservices built with springboot to demonstrate asynchronous communication between microservices with kafka, finally containerizing all the tools ( microservices , kafka broker ... ) and running it using docker compose.
In order to launch this project you should be having the following software, tool & packages installed in your machine :
- docker
- docker-compose
- spring-boot ( optional ).
In order to launch this project , follow with me the next steps :
git clone https://github.com/aymenzitouni/microservices-kafka-docker
cd microservices-kafka-docker
docker build -t kafka-ms-producer ./producer
docker build -t kafka-ms-consumer ./consumer
docker-compose up