Skip to content

sohamkamani/java-kafka-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kafka Producer/Consumer Example in Java

This is the example repo for my blog post on Running a Kafka Producer/Consumer Example in Java

To run this example:

  1. Make sure you have Java, the JDK, and Maven installed
  2. Clone the repo
  3. Run mvn clean compile assembly:single - this should give you a JAR file in the target folder
  4. Run java -jar target/java-kafka-example-1.0-SNAPSHOT-jar-with-dependencies.jar to run the JAR file