kafka-segmentio-01

command
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

Kafka Go Producer/Consumer using segmentio/kafka-go

Superceeds sandox example 'kafka-sarama'. It appears, at the time of this writing, that https://github.com/segmentio/kafka-go is the new darling.

Uses: : https://github.com/segmentio/kafka-go

Prerequisites

  1. Kafka running -- see: https://docs.confluent.io/current/quickstart/ce-docker-quickstart.html

  2. Place an alias in /etc/hosts for 'broker' -> localhost. This is an artifact of how kafka is run. The broker knows itself as 'broker', but that host name is obscured by docker's network. However the port is mapped to localhost. (Read the docker-compose script.)

To-Do: Implement example a docker containers and have the Makefile run the containers in the proper docker network.

References

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL