This is a talk about golang and kafka prepared for the golang sydney meetup , run the following command to get everything
go get -u github.com/johnnyluo/gokafka-workshop
- Please install latest golang, refer to Getting Started
- We will be running a one node kafka in docker composer on your local machine, if you don't have docker composer setup , please follow Install Docker Compose , to set it up.
You will need the following libraries in this workshop
- github.com/Shopify/sarama
go get -u github.com/Shopify/sarama
- github.com/bsm/sarama-cluster
go get -u github.com/bsm/sarama-cluster
- open a terminal
- go to kafka-local folder
docker-compose up -d
If you are comfortable to cli tools, then you can go here , otherwise follow the following steps to setup your local Kafka manager through the UI.