An open API service indexing awesome lists of open source software.

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

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

```