Skip to content

Conversation

@JunRain2
Copy link
Member

@JunRain2 JunRain2 commented Jul 18, 2025

✨ What’s this PR?

📌 관련 이슈 (Related Issue)


🧶 주요 변경 내용 (Summary)

  • 배치 모듈 초기화
  • Quartz 세팅
  • FCM 세팅
  • 알림 플로우 구현

🧪 테스트 / 검증 내역

  • Quartz 알림

💬 기타 공유 사항

  • API 스펙을 결정하고 테이블을 설계할 필요가 있을 것 같습니다!

🙇🏻‍♀️ 리뷰 가이드 (선택)

@JunRain2 JunRain2 self-assigned this Jul 18, 2025
@auto-assign auto-assign bot requested a review from songyi00 July 18, 2025 11:51
@JunRain2 JunRain2 changed the title 배치 모듈 초기 구현 배치모듈 환경세팅 Jul 18, 2025
Copy link
Collaborator

@songyi00 songyi00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

빌드 실패하는 것만 확인해줘!!
고생했습니당 ㅎㅎ

import org.springframework.stereotype.Component

@Component
class TukNotificationJob(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

job은 최상위 레이어에 별도 패키지 따로 파서 관리하고 application은 재사용 가능한 서비스 코드만 넣는거 어떤가용?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ㄴ job
ㄴ infra
ㄴ application
ㄴ 등등

@Component
class MeetingNotificationSender(
private val memberService: MemberService,
private val fcmClient: FcmClient
Copy link
Collaborator

@songyi00 songyi00 Jul 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요건 application <-> infra 의존성 역전이라 별도 어플리케이션 서비스로 한번 래핑해서 하위 인프라로 내리는게 나을 것 같습니다
그리고 저번에 얘기한 것처럼 tuk-api 에 별도 발송 API 따로 팔거라 그거로 추후 갈아껴야할 듯


*.env
*.env
firebase-adminsdk.json
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요거 파일로 직접 갖고 있지 말고 인코딩해서 압축한 후에 환경변수로 들고 있는건 어떤가요 애플리케이션 연결할땐 디코딩해서 사용하고!
따로 노출 위험 관리 부담도 적고 관리 포인트 줄어들 것 같아서용

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넵 FCM_ADMINSDK라는 이름의 환경변수에 저장해 뒀고 성공적으로 build 되는거 확인했습니다!
CD 환경에도 추가적으로 작업해둘게요

import org.springframework.scheduling.quartz.SpringBeanJobFactory

@Configuration
class QuartzConfig(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍👍

@github-actions github-actions bot requested a review from songyi00 July 21, 2025 16:38
JunRain2 added 2 commits July 22, 2025 01:44
- MeetingNotificationService를 통해 바로 전송할건지 스케줄링할 것인지 결정
- MeetingNotifier 통해 Meeting 도메인에 해당하는 메시지를 생성하고 알림
- NotificatioSender를 구현한 FcmClient에서 실질적인 알림 전송이 이루어진다.
@JunRain2 JunRain2 merged commit a4fa4d7 into main Jul 22, 2025
1 check passed
@JunRain2 JunRain2 linked an issue Jul 22, 2025 that may be closed by this pull request
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ Feature: 배치모듈 환경세팅

3 participants