yaskh / ImageDataKafkaStreaming

0 stars 0 forks source link

Image Data Streaming Application

This application demonstrates how to stream compressed image data using Apache Kafka. It includes a producer component that generates and sends compressed image data, and a consumer component that receives, decompresses, and saves the data as images.

Installation

No additional installation is required; Docker Compose handles all necessary installations.

Starting the Script Setup

To initiate the application, run the following command. This starts Zookeeper and Kafka, runs the tests, activates the Producer, and finally, the Consumer. The output will be saved to a local directory named output.

docker-compose up -d

CLI Arguments

Modify the command in the docker-compose file

Kafka Producer

Run data_generator.py from the command line, specifying the desired options. Below are the available command-line arguments:

Kafka Consumer

Modify the command in the docker-compose file

To start the consumer, which receives, decompresses, and saves the image data, run:

Viewing the logs