项目作者: vsouza

项目描述 :
Golang Kafka consumer and producer example
高级语言: Go
项目地址: git://github.com/vsouza/go-kafka-example.git
创建时间: 2017-05-19T17:35:21Z
项目社区:https://github.com/vsouza/go-kafka-example

开源协议:MIT License

下载


Golang Kafka Example









Sample Golang Kafka Consumer and Producer

Setup

Apache Kafka Quickstart

Producer

go run cmd/producer/main.go

Consumer

flags:

  • brokerList
  • topic
  • partition (default: 0)
  • offsetType
  • messageCountStart (default: 0)

go run cmd/consumer/main.go

  1. Received messages Something Cool #1
  2. Received messages Something Cool #2
  3. Received messages Something Cool #3
  4. Received messages Something Cool #4
  5. Received messages Something Cool #5

Contribute

We would love you for the contribution to go-kafka-example, check the LICENSE file for more info.

Meta

Vinicius Souza – @iamvsouzahi@vsouza.com
https://github.com/vsouza/go-kafka-example

FOSSA Status