GithubHelp home page GithubHelp logo

w7089 / kafka_simple_demo Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4 KB

Basic dockerized stack of Kafka, ZooKeeper, Kafka consumer and producer.

Home Page: https://rokpoto.com/introduction-into-kafka-in-production-part-1/

kafka docker docker-compose zookeeper kafkacat

kafka_simple_demo's Introduction

kafka_simple_demo

To raise Kafka demo stack run:

docker-compose up -d

It will start ZooKeeper, sing Kafka broker, sample Kafka producer, consumer and Kafka Manager:

/tmp/kafka_simple_demo$ docker-compose ps
     Name                   Command                  State                       Ports                 
-------------------------------------------------------------------------------------------------------
kafka            /opt/bitnami/scripts/kafka ...   Up (healthy)   9092/tcp                              
kafka-consumer   kafkacat -b kafka:9092 -C  ...   Up                                                   
kafka-manager    cmak-3.0.0.4/bin/cmak            Up             0.0.0.0:9000->9000/tcp                
kafka-producer   kafkacat -b kafka:9092 -t  ...   Exit 0                                               
zookeeper        /opt/bitnami/scripts/zooke ...   Up (healthy)   2181/tcp, 2888/tcp, 3888/tcp, 8080/tcp

Kafka producer creates topic test and writes 3 messages specified in my_msgs.txt.

Kafka consumer is always up and consumes messages from topic test

More information about this demo is at Introduction into Kafka in Production

kafka_simple_demo's People

Contributors

w7089 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.