Wednesday, 7 August 2019

spring boot kafka


setup and run kafka locally first:

https://kafka.apache.org/quickstart


----
sprint boot to call kafka:


producer:
https://www.youtube.com/watch?v=NjHYWEV_E_o
code:https://github.com/TechPrimers/spring-boot-kafka-producer-example/tree/master/src/main/java/com/techprimers/kafka/springbootkafkaproducerexample/resource

comsumer:
https://www.youtube.com/watch?v=IncG0_XSSBg
code:  https://github.com/TechPrimers/spring-boot-kafka-consumer-example


more complex one but good to have a look, (all kafka settings are in property file.)
https://www.youtube.com/watch?v=gdo_AMfncpU


No comments:

Post a comment