Queue/kafka

Spring boot - Apache Kafka

gthoya 2020. 7. 6. 08:53

maven dependency

<dependency>

<groupId>org.springframework.kafka</groupId>

<artifactId>spring-kafka</artifactId>

</dependency>


Producer를 통해 전송하고 Consumer를 통해 받는다.

예제 코드와 컨피그 설명은 아래 참조 블로그에 정리가 잘 되어 있다.



[참조]

https://madplay.github.io/post/kafka-producer-consumer-options

https://sunghs.tistory.com/80

https://seungwoo0429.tistory.com/29