(build/run instructions for windows)
-
clone repo
-
build
$ mvn clean package site -DskipTests- 2.1 check reports:
open target/site/project-reports.html
- 2.1 check reports:
-
start service
$ cd target
$ java -jar numseq-service-0.0.1-SNAPSHOT.jar --topic=fizzbuzz-input -
monitor kafka topic
- 4.1 start zookeper
$ .\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties - 4.2 start kafka server
$ .\bin\windows\kafka-server-start.bat .\config\server.properties - 4.3 start console listener on "fizzbuzz-input"
$ .\bin\windows\kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic fizzbuzz-input --property value.deserializer=org.apache.kafka.common.serialization.IntegerDeserializer
- 4.1 start zookeper
-
trigger number generation (using powershell)
$ Invoke-RestMethod -URI http://localhost:8080/numproducer/kafkatopic -Method POST