Conversation
- chat.queue에 x-dead-letter-exchange, x-dead-letter-routing-key 설정 - CHAT_DLX, CHAT_DLQ 상수 및 바인딩 설정 추가 - ChatDlqReprocessor 클래스 생성 - ChatRetryService 클래스 생성 및 retry-count 헤더 기반 재처리 로직 구현
- 메시지 발행 실패 시 AmqpRejectAndDontRequeueException 발생하도록 수정 - ChatRetryService의 rabbitTemplate.send 매개변수 교체 (chat exchange/routingKey) - RabbitConstant에 채팅 관련 알림 상수 수정
Contributor
|
고생하셨습니다! |
pshshsh
approved these changes
May 2, 2025
3uomlkh
approved these changes
May 2, 2025
Contributor
3uomlkh
left a comment
There was a problem hiding this comment.
수고하셨습니다.👍🏻
저도 RetryService로 나눠놔야겠네요..
|
|
||
| @Bean | ||
| public Binding chatDlqBinding() { | ||
| return BindingBuilder.bind(chatDlq()).to(chatDlx()).with(CHAT_DLQ); |
Contributor
There was a problem hiding this comment.
위에 유리님께서 생성해주신 bind() 메서드 사용하시면 될 것 같습니다!
Contributor
Author
There was a problem hiding this comment.
넵 알려주셔서 감사합니다!
반영해서 테스트 후 push 했습니다.
- chatBinding과 chatDlqBinding에서 Queue, Exchange를 메서드 직접 호출 방식에서 파라미터 기반으로 리팩토링
Contributor
Author
아 그렇네요 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Issue Number
close #257
📝 작업 내역
💡 PR 특이사항
📸 스크린샷