Git Product home page Git Product logo

kafka_throughput_investigation's Introduction

Data Streaming Homework - Investigation of the Apache Kafka throughput

Goals:

  • Learn about implementation of dummy distributed application that uses kafka for communication between components
  • Investigate throughput of a kafka-based solution considering different number of producers, consumers, partitions and replicas

Implementation:

  • Kafka environment
  • Producer service
  • Consumer service
  • Reporting service

Reddit Dataset

As dataset was used 1 million Reddit comments from 40 subreddits, from which the last two columns were removed by running the command cut -d, -f1-2 kaggle_RC_2019-05.csv > reddit_ds.csv.

And thus, the working dataset reddit_ds.csv contains the following columns:

  • subreddit (categorical): on which subreddit the comment was posted
  • body (str): comment content

How to Run the Implementation

Usage notes

Set up

git clone https://github.com/conduktor/kafka-stack-docker-compose.git
cd kafka-stack-docker-compose
docker compose -f full-stack.yml up -d
cd ..
git clone https://github.com/artemiuss/kafka_throughput_investigation.git
cd kafka_throughput_investigation
docker compose build

Run tests

./run_tests.sh

Stop and clean-up

docker compose down --rmi all -v --remove-orphans
cd kafka-stack-docker-compose
docker compose -f full-stack.yml down --rmi all -v --remove-orphans

Graphs of the throughput/max latency versus configuration

  1. One producer, a topic with one partition, one consumer Kafka Metrics
  2. One producer, a topic with one partition, 2 consumers Kafka Metrics
  3. One producer, a topic with 2 partitions, 2 consumers Kafka Metrics
  4. One producer, a topic with 5 partitions, 5 consumers Kafka Metrics
  5. One producer, a topic with 10 partitions, 1 consumers Kafka Metrics
  6. One producer, a topic with 10 partitions, 5 consumers Kafka Metrics
  7. One producer, a topic with 10 partitions, 10 consumers Kafka Metrics
  8. 2 producers (input data should be split into 2 parts somehow), a topic with 10 partitions, 10 consumers Kafka Metrics

Final Report

Kafka Metrics Kafka Metrics Kafka Metrics

kafka_throughput_investigation's People

Contributors

artemiuss 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.