kafkatoolbox

module
v0.0.0-...-8e4ca81 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: BSD-2-Clause

README

kafkaToolBox

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 :

    • Deploy :

    ./producer-api /path/config.json

    • Post a message :

    curl -i http://localhost:8080/producer -X POST -d '{"message":"Here we go !"}' -H "Authorization: Bearer token"

  • consumer :

    • Deploy :

    ./consumer /path/config.json

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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