Trying Kafka using Spring Boot. AppProducer send message about computer by selected id in POST request. AppConsumer just read string in json format and print it in logs
Instructions:
- Go to C:\kafka_2.13-3.9.0
- In cmd: bin\windows\zookeeper-server-start.bat config\zookeeper.properties
- In cmd: bin\windows\kafka-server-start.bat config\server.properties
- Run appProducer
- Run appConsumer
- In postman: http://localhost:8080/kafka/send/1 (id from DAO)