- Docker should be up and running in your machine
- Basic knowledge on kafka
- Run the command to compose the docker
./scripts/start-kafka.sh
- Run the command to install the go dependency
go get github.com/segmentio/kafka-go
- Run the command to create the topic
./scripts/create-topic.sh
- Run the command to start the producer
go run ./producer/producer.go
- Run the command to start the consumer
go run ./consumer/consumer.go
- Run the command to add messages via terminal
./scripts/push-topic-messages.sh
- Run the command to view the messages of the topic in terminal
./scripts/view-topic-messages.sh