Skip to content

Golang Kafka consumer and producer example

License

Notifications You must be signed in to change notification settings

immotal/go-kafka-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Received messages  Something Cool #1
Received messages  Something Cool #2
Received messages  Something Cool #3
Received messages  Something Cool #4
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 – @iamvsouza[email protected] https://github.com/vsouza/go-kafka-example

FOSSA Status

About

Golang Kafka consumer and producer example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 82.4%
  • Makefile 17.6%