Giter Site home page Giter Site logo

kafka-study's Introduction

๐Ÿ“˜ Apache Kafka Study

License # #

This is my journey studying Apache Kafka along with another things, like Docker and Docker Compose
and some new programming languages like Go, Shell Scripting and JavaScript
relearn Java ๐Ÿ˜…

My Notion with my journey!

Setup

# Create Kafka and Zookeeper
docker compose up -d

# Check if the containers ar up
docker-compose ps

# Check if the zookeeper is running
docker-compose logs zookeeper | grep -i binding

# Check if the kafka is running 
# (this can take few seconds because will wait for the zookeeper start first)
docker-compose logs kafka | grep -i started

Kafka-utils Script

# See the help
./kafka-utils.sh --help

Utilities to use Kafka

Parameters: 
01 - Topic Name

Syntax: kafka-utils [--create-topic | --describe-topic | --test-prod | --test-cons ] TOPIC_NAME
options:
--create-topic     Create a topic if not exists in the kafka.
--describe-topic   Describe a kafka topic.
--test-prod        Test messages to kafka topic (sequence 1 to 100).
--test-cons        Test to print the messages sent in the --test-prod.
--help             Help with the script

Testing

# Create Topic
./kafka-utils.sh --create-topic "test-topic"

# Check if the topic was created
./kafka-utils.sh --describe-topic "test-topic"

# Testing Sending messages through a producer
./kafka-utils.sh --test-prod "test-topic"

# Testing Consuming messages through a consumer
./kafka-utils.sh --test-cons "test-topic"

Todo

  • Create an project with Django

Related Links

Shell Script Study

Kafka Study

kafka-study's People

Contributors

deividmarreiro avatar

Stargazers

Anthony Caliani 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.