Skip to content

a simple Kafka producer and consumer implemented in java.

Notifications You must be signed in to change notification settings

Reza-Marzban/Simple-Kafka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple-Kafka

a simple Kafka producer and consumer implemented in java.

Producer: creates and sent 500 random number in range of [0,5000] with topic kafka_Max in an asynchronous way. Consumer: get the messages with Topic kafka_Max, and then calculate the max of all values and print it out.

How To Run Producer.java: javac -cp .:$CLASSPATH Producer.java java -cp .:$CLASSPATH Producer

How To Run Producer.java: javac -cp .:$CLASSPATH Consumer.java java -cp .:$CLASSPATH Consumer

The output would be printed out on the console!

Attached Files: 2 java source files, 2 output screenshots, 1 ReadMe txt file.

Sources used: Kafka Documentation: https://kafka.apache.org/documentation/

Releases

No releases published

Packages

No packages published

Languages