-
Notifications
You must be signed in to change notification settings - Fork 0
feat: 이벤트 알림 로직 구현 #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: 이벤트 알림 로직 구현 #102
Conversation
|
dh2906
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!
메시지 알림 전송 실패 시 재시도하는 것도 있으면 좋을 듯 합니당
| @@ -0,0 +1,9 @@ | |||
| package gg.agit.konect.domain.user.event; | |||
|
|
|||
| public record UserRegisterEvent( | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이벤트는 이미 발생한 사건을 표현하므로, 네이밍은 과거형을 사용하는 것이 적절하다고 합니다!
링크
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 이런 네이밍 규칙이 있군요 👀
| private final SlackNotificationService slackNotificationService; | ||
|
|
||
| @Async | ||
| @TransactionalEventListener(phase = AFTER_COMMIT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
단순 궁금증인데 서비스 레이어에서 트랜잭션 메소드가 커밋되고 난 뒤 이벤트를 수행하는 구조가 맞나요??? 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
트랜잭션이 정상적으로 커밋이 되면 이벤트를 수행하는 구조 맞습니다
* feat: 탈퇴 회원 보관을 위한 WithdrawnUser 엔티티 및 테이블 추가 * feat: 미납 회비 탈퇴 차단 예외 코드 추가 * refactor: 회원 탈퇴 로직 개선 (미납 회비 검증 및 탈퇴 회원 아카이빙) * feat: 탈퇴 회원 1년 후 자동 삭제 배치 스케줄러 구현 * refactor: 미납 회비 검증 로직을 ClubMember 도메인 메소드로 이동 * refactor: 불필요한 WithdrawnUser 아카이브 기능 제거 * refactor: DB CASCADE 활용으로 회원 탈퇴 로직 단순화 * chore: 주석 삭제 * refactor: CASCADE로 대체된 불필요한 deleteByUserId 메소드 제거 * fix: 미납 회비 유효성 검증 메소드 네이밍 수정
|
🔍 개요
🚀 주요 변경 내용
이벤트 알림 로직 구현
💬 참고 사항
✅ Checklist (완료 조건)