Skip to content

hhow09/go-kafka-example

Repository files navigation

Go Kafka Example

Examples

  • async producer
  • async producer with 3 consumers (same group)
  • reduce batch timeout
  • adjust replication factor = 3

How to use

  • make up: run the services
  • up-rebuild: run services with dockerfile rebuilt (if producer or consumer need to rebuild)
  • make down: stop services

Settings

  • change REMOVE_RAW to false if you want to see the raw logs of conumser

Packages

  • producer: message producer
  • consumer: message consumer (also write logs)
  • log-paresr: log paresr / analyzer for performance benchmark

Ref