https://github.com/layunne/kafka-go-first
Simple example with Kafka and Golang
https://github.com/layunne/kafka-go-first
confluentinc docker docker-compose golang kafka queue
Last synced: 5 months ago
JSON representation
Simple example with Kafka and Golang
- Host: GitHub
- URL: https://github.com/layunne/kafka-go-first
- Owner: layunne
- Created: 2020-03-14T17:26:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-15T02:26:31.000Z (over 6 years ago)
- Last Synced: 2023-02-27T04:56:20.895Z (over 3 years ago)
- Topics: confluentinc, docker, docker-compose, golang, kafka, queue
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kafka with Go
Dependencies
------------
This client for Go depends on librdkafka. [Font](https://github.com/confluentinc/confluent-kafka-go).
- 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
---
```shell script
docker-compose up -d
cd consumer
go run main.go
cd ..
cd producer
go run main.go
```