Skip to content

bpark/kafka-docker-demo

Repository files navigation

kafka-docker-demo

demo project to show apache kafka and docker in action.

Installation

  1. Download vagrant from

    https://www.vagrantup.com/downloads.html

  2. Download VirtualBox from

    https://www.virtualbox.org/wiki/Downloads

  3. Go to the directory vagrant and type

    vagrant up	
    
  4. Login to the virtual machine

    vagrant ssh	
    

    or

    with password vagrant if the terminal promt does not appear.

The virtual machine runs on ip 192.168.77.7.

  1. Start a consumer by running ConsumerDemo or SimpleStreamsDemo for a streaming client demo

  2. Start a producer by running ProducerDemo

  3. Start ConsumerDemo from your favorite IDE and publish some messages by running ProducerDemo

Zookeeper Web Console

Open http://192.168.77.7:8000 and use 192.168.77.7:2181 as connection string. Auth credentials are not required.

Kafka Topic UI

Located at http://192.168.77.7:8083

Demo Description

  • ConsumerDemo Consumer implementation waiting for messages to consume
  • ProducerDemo Creates 10 messages, can received by ConsumerDemo or SimpleStreamsDemo
  • EndlessProducerDemo Creates messages every 500ms
  • ProducerCallbackDemo Producer with callback to test if a message was successfully sent
  • SimpleStreamsDemo Demonstrates the Kafka Streaming API

About

Example Project to demonstrate kafka with docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published