module
Version:
v0.0.0-...-8e4ca81
Opens a new window with list of versions in this module.
Published: May 18, 2020
License: BSD-2-Clause
Opens a new window with license information.
README
¶
kafkaToolBox is based on segmentio/kafka-go package and provides :
- producer-api : Simple API allowing data ingestion and pushing messages to Kafka
- consumer : Simple Kafka consumer
Build and deploy
-
To quickly deploy a Kafka cluster : https://github.com/PierreKieffer/docker-kafka-cluster
-
Set the config.json file with your own settings
-
Build an application :
go build .
-
producer-api :
./producer-api /path/config.json
curl -i http://localhost:8080/producer -X POST -d '{"message":"Here we go !"}' -H "Authorization: Bearer token"
-
consumer :
./consumer /path/config.json
Directories
¶
Click to show internal directories.
Click to hide internal directories.