- follow instructions here https://kafka.apache.org/quickstart
- download https://www.apache.org/dyn/closer.cgi?path=/kafka/3.4.0/kafka_2.13-3.4.0.tgz
cd kafka_2.13-3.4.0
- Start the ZooKeeper service
$ bin/zookeeper-server-start.sh config/zookeeper.properties
- Start the Kafka broker service
$ bin/kafka-server-start.sh config/server.properties
- clone project into local directory
git clone git@github.com:omgshalihin/event-driven-microservices-springboot-kafka.git - within emailService > kafka > OrderConsumer.java class, replace
fromEmail&toEmail - then run all 3 microservices (order, stock, email)
- make a POST request to http://localhost:8081/api/orders or any port
- with body e.g. { "name": "test name", "qty": 1, "price": 5500 }