https://github.com/adopabianko/go-kafka
Golang :heart: Kafka
https://github.com/adopabianko/go-kafka
golang kafka
Last synced: 3 months ago
JSON representation
Golang :heart: Kafka
- Host: GitHub
- URL: https://github.com/adopabianko/go-kafka
- Owner: adopabianko
- Created: 2020-08-23T15:46:25.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-23T15:47:11.000Z (almost 5 years ago)
- Last Synced: 2024-12-27T17:14:50.601Z (5 months ago)
- Topics: golang, kafka
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## How to run
```bash
git clone https://github.com/adopabianko/go-kafka.git# Add kafka to your hosts
sudo nano /etc/hosts
127.0.0.1 kafka# go to project
cd go-kafka# create kafka network
docker network create kafka# running docker compose
docker-compose up# build and run consumer with command
go build -o cmd/consumer/consumer cmd/consumer/main.go
./consumer# buid and run publisher with command
go build -o cmd/publisher/publisher cmd/publisher/main.go
./publisher