[kafka] spring boot consumer config 설정, client 입력
1. [kafka] spring boot consumer config 설정, client 입력
2. [kafka] kafka 수동 commit, ENABLE_AUTO_COMMIT_CONFIG
3. [kafka] 실패시 retry, 실패시 처리방법, setRecoveryCallback, setErrorHandler
카프카 기본설정은 생각보다 쉽다.
https://docs.spring.io/spring-kafka/docs/1.0.0.M1/reference/htmlsingle/
https://docs.spring.io/spring-boot/docs/2.1.0.RELEASE/reference/htmlsingle/#boot-features-kafka
이런 문서들 보면된다.
한글 보기쉬운 블로그
내가 필요한건, 컨슈머가 여러가 들어갈수도 있었기에 configuration 을 사용해야 했음. 다른 옵션들도 줄수 있고.
여기에 깔끔하게 다 나온다 . 그대로 하니까 됨
https://memorynotfound.com/spring-kafka-consume-producer-example/
Spring Kafka - Consumer and Producer Example - Memorynotfound
This tutorial demonstrates how to configure a Spring Kafka Consumer and Producer example. We create a Message Producer which is able to send messages to a Kafka topic. We create a Message Consumer which is able to listen to messages send to a Kafka topic.
memorynotfound.com
참고
-카프카 리스너의 여러가지 구현 방법
- 설정값, 간단한 설명 도움