spring kafka commit 실패시 next poll때 일어나는일
2023. 11. 7. 22:35ㆍMiddleware/Kafka&RabbitMQ
Not acknowledging the kafka message at all in MANUAL_IMMEDIATE mode
I could not find any documentation related to this issue, hence the question. What happens if @KafkaListener method does not call acknowledgement.acknowledge() at all when the ackModeis set to
stackoverflow.com
nack()은 현재 실패한 메시지 전의 오프셋까지 커밋하고 나머지 오프셋메시지를 버리고 다음 폴링때 버린 오프셋부터 다시 폴링한다.
https://pula39.tistory.com/m/19
Kafka의 Auto Commit 에서 Auto는 당신이 생각하는 Auto가 아닐 수 있다.
환경설정을 할 때 auto라는 키워드가 나오면 작업자는 날먹을 꿈꾸며 행복해지는 한 편, 이 auto가 어디까지 자동으로 해주고 어디까지는 안해주는지 공포에 떨며 작업을 하게 된다. 나에게 kafka의
pula39.tistory.com
오토 커밋 문제점
'Middleware > Kafka&RabbitMQ' 카테고리의 다른 글
Kafka - 신뢰성 있는 카프카 애플리케이션을 만드는 3가지 방법(멱등성 프로듀서, 트랜잭션 컨슈머, 컨슈머 중복 적재) (0) | 2024.06.18 |
---|---|
Kafka - Spring kafka Producer, Consumer 예제 코드 및 오프셋 커밋, 에러 핸들링 설명 (1) | 2023.11.18 |
[Kafka] Parallel Consumers, 메시지별 병렬 처리 (0) | 2023.10.30 |
Spring cloud stream kafka - concurrency (1) | 2022.07.27 |
RabbitMQ - 레빗엠큐 개념 및 동작방식, 실습 (0) | 2020.07.26 |