This repository contains simple examples of how to use the franz-go library. The repository accompanies the blog post.
You'll first have to run the docker-compose
file to start the Kafka compatible broker Redpanda.
❯ docker-compose up
Then you can run the examples using the following commands:
To run the consumer:
❯ gor ./consumer/main.go
To run the producer:
❯ gor ./producer/main.go