Refactor: 알림 도메인 리팩토링 (#234) #240
Merged
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.
📌 개요
알림 도메인 전반의 성능을 최적화하고, 아키텍처를 개선하여 유지보수성과 확장성을 높이는 리팩토링을 진행했습니다.
🔨 작업 내용
알림 목록 조회 성능 개선 (N+1 문제 해결)
API 역할 분리 및 아키텍처 개선
POST /api/notifications)와 관련 DTO(NotificationCreateRequest)를 제거했습니다.서비스 및 이벤트 리스너 역할 명확화
NotificationService가 ID를 받아 엔티티를 조회하도록 책임을 위임하여, 리스너는 오직 이벤트 전달이라는 단일 책임만 갖도록 구조를 개선했습니다.🔗 관련 이슈
Closes #234
✅ 체크리스트