Skip to content

sharath-mohan/understanding-kafka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning Kafka

Installation instructions

creating Zookeeper container

docker run -d \
--net=host \
--name=zookeeper \
-e ZOOKEEPER_CLIENT_PORT=32181 \
-e ZOOKEEPER_TICK_TIME=2000 \
-e ZOOKEEPER_SYNC_LIMIT=2 \
confluentinc/cp-zookeeper:7.3.1

creating kafka contrainer

docker run -d \
    --net=host \
    --name=kafka \
    -e KAFKA_ZOOKEEPER_CONNECT=localhost:32181 \
    -e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://localhost:29092 \
    -e KAFKA_BROKER_ID=2 \
    -e KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 \
    confluentinc/cp-kafka:7.3.1

by default in spins up 3 brokers, spin up 1

https://docs.confluent.io/platform/current/installation/docker/config-reference.html#required-zk-settings

Whats the project about?

This is a basic guide with the following programs

  1. topic.js - for setting up and configuting topic
  2. Producer.js- sending data to kafka broker
  3. consumer.js - consuming data from kafka broker

License

  1. This project has been licensed with an MIT license
  2. A Github star would be really great 😊

About Me

Hello, I am Sharath, a self-taught web developer and designer. I mostly work with front-end development using React, Angular .

Stay in Loop

If you would like to know when I release new resources , you can follow on LinkedIn, Twitter

About

Guide on getting to know about kafka

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published