This example will help you set up and emulate a system consisting of Producer, Consumer and Apache Kafka
- Make sure you have Docker installed on your computer
- Download project to your computer
- Open project in your Terminal
- Run
docker-compose up
command - After the whole system is up, open Postman
- Using Postman send a POST request to Producer.
- Use url:
localhost:8086/test/send
body:
{
"title": "test title",
"description": "test description"
}
- Going back to the terminal, you can see how your object was already received by the Consumer application and displayed in the terminal.
- To integrate the project into your system, you need to modify the Consumer & Producer applications.
- Open Consumer & Producer app in 2 terminals.
- Run
docker build -f Dockerfile -t YourDockerHubUsername/nameOfImage .
command to create image for Consumer & Producer apps. - Run
docker push YourDockerHubUsername/nameOfImage
command in both terminals to send your images to DockerHub - Modify docker-compose.yaml file, change image path for Consumer & Producer.
- Enjoy :)
Yes you can! Contributions are welcomed. Thank you for considering contributing to the project!