[DEPLOY] v.49 사용 가능한 제휴 조회, 알림 재전송 로직 수정#282
Merged
leesumin0526 merged 4 commits intomainfrom Mar 3, 2026
Merged
Conversation
- syncUserPapersForStudent: 반복 exists 쿼리를 일괄 조회 후 메모리 필터링으로 변경 - getUsablePartnership: Goods 조회를 batch 처리로 최적화 - UserPaperRepository.findByStudentId, GoodsRepository.findByContentIdIn 추가 - saveAll로 bulk insert 적용
- 기존 30초 주기 스케줄러를 이벤트 기반 처리로 변경하여 서버 부하 개선 - 알림 전송 실패 시 즉시 재시도 이벤트 발행 (exponential backoff 적용) - 서버 재시작 시 미처리 PENDING 알림 자동 복구 처리 - 영구 실패(FCM UNREGISTERED 등)와 일시적 실패 구분하여 재시도 Changes: - Add: NotificationFailedEvent, NotificationRetryEventHandler - Modify: OutboxRetryScheduler (스케줄러 비활성화, 시작시에만 복구) - Modify: NotificationListener, OutboxAfterCommitPublisher (실패시 이벤트 발행) - Modify: OutboxRetryProcessor (재시도 실패시 이벤트 발행)
- 기존 30초 주기 스케줄러를 이벤트 기반 처리로 변경하여 서버 부하 개선 - 알림 전송 실패 시 즉시 재시도 이벤트 발행 (exponential backoff 적용) - 서버 재시작 시 미처리 PENDING 알림 자동 복구 처리 - 영구 실패(FCM UNREGISTERED 등)와 일시적 실패 구분하여 재시도 Changes: - Add: NotificationFailedEvent, NotificationRetryEventHandler - Modify: OutboxRetryScheduler (스케줄러 비활성화, 시작시에만 복구) - Modify: NotificationListener, OutboxAfterCommitPublisher (실패시 이벤트 발행) - Modify: OutboxRetryProcessor (재시도 실패시 이벤트 발행)
[REFACTOR/#280] 사용 가능한 제휴 조회, 알림 재전송 로직 수정
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.
#️⃣연관된 이슈
📝작업 내용
🔎코드 설명(스크린샷(선택))
서버 재시작 또는 Pending 상태인 알림 발생시 재전송 최대 3번 진행
