The Kafka application consists of 3 nodes.
- CSV Reader Application (producer)
- Kafka Broker
- Aggregator Application (consumer)
The nodes communicate as below,
CSV Reader Application <-> Kafka Broker <-> Aggregator Application
git clone https://github.com/seagullmouse/kafka.git
cd kafka
mvn clean install
-
Start the Kafka Broker (requires docker-compose)
docker-compose -f docker-compose.yml up
-
Start the Aggregator Application
java -jar aggregator/target/aggregator-0.0.1-SNAPSHOT.jar
-
Start the CSV Reader Application (pass the CSV filename as the only argument)
java -jar reader/target/reader-0.0.1-SNAPSHOT.jar ~/Downloads/commodity_trade_statistics_data.csv