learn-kafka-golang

module
v0.0.0-...-daa43b0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: Apache-2.0

README

Learn Kafka

Learning kafka using Go and library shopify sarama

Running Snapshot

Kafka Publisher

Kafka-Publisher

Kafka Consumer

Kafka-Consumer

Publisher

  • Using wordlist word.txt for dummy publish message

Running

  • Setup docker container

    bash run-docker.sh
    
  • Setup topic name

    export KAFKA_TOPIC="kafka-topic"
    
  • Setup hosts

    vi /etc/hosts
    ----
    127.0.0.1  zeroc0d3_kafka   # container_name
    
  • Install Dependencies

    make setup
    
  • Build Producer

    make build-producer
    
  • Build Consumer

    make build-consumer
    
  • Run Producer

    make run-producer
    
  • Run Consumer

    make run-consumer
    
  • Author : Dwi Fahni Denni (@zeroc0d3)
  • License: Apache ver-2

Directories

Path Synopsis
cmd
src

Jump to

Keyboard shortcuts

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