https://github.com/jdockerty/kafka-learning
Learning Kafka!
https://github.com/jdockerty/kafka-learning
Last synced: about 1 year ago
JSON representation
Learning Kafka!
- Host: GitHub
- URL: https://github.com/jdockerty/kafka-learning
- Owner: jdockerty
- Created: 2022-08-02T21:02:01.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-21T19:26:34.000Z (almost 4 years ago)
- Last Synced: 2025-01-23T13:29:32.138Z (over 1 year ago)
- Language: Go
- Size: 96.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kafka Learning
The `manifests` folder can be used to deploy the [`strimzi`](https://strimzi.io/) Kafka operator into [`k3d`](https://k3d.io/), by running `make init`.
Once the operator is deployed, you can produce some fake data into the pre-created `test-topic` by running
# Run these in separate terminals as they are blocking calls
make run-producer-local
make run-consumer-local
This assumes the use of Strimzi, if using Confluent Cloud it requires running the `go` binary directly, as an API and secret key must be passed for authentication
go run cmd/producer/producer.go --topic test-topic --brokers "" --api-key "" --secret-key ""
go run cmd/consumer/consumer.go --topic test-topic --brokers "" --api_key "" --secret-key ""