Skip to content

johnnyluo/gokafka-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gokafka-workshop

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

Run kafka in docker

  • 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.

setup kafka manager

  • Open a browser , go to http://localhost:9000
  • You should see a screen like this
  • Click Cluster->Add Cluster
  • Click "Save" button
  • Add topic

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages