layunne / kafka-go-first

Simple example with Kafka and Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kafka with Go

Dependencies

This client for Go depends on librdkafka. Font.

  • For MacOS X, install librdkafka from Homebrew
  • For MacOS X, add in etc/hosts 127.0.0.1 kafka
  • For Alpine: apk add librdkafka-dev pkgconf

Run

docker-compose up -d

cd consumer 
go run main.go

cd ..

cd producer
go run main.go

About

Simple example with Kafka and Golang


Languages

Language:Go 100.0%