Skip to content

Conversation

@ChaeAg
Copy link
Member

@ChaeAg ChaeAg commented Mar 21, 2025

Related Issue

Key Changes

FCMService의 푸시 알림 발송 로직을 비동기 처리하여, 주요 요청 흐름에서의 응답 지연을 방지하고자 합니다.

  • @EnableAsync 어노테이션 추가 (WSSServerApplication)
  • FCMService@Async 어노테이션 적용
    • 푸시 메시지 전송 작업을 별도 쓰레드에서 비동기 실행

To Reviewers

References

@ChaeAg ChaeAg requested a review from rinarina0429 March 21, 2025 16:30
@ChaeAg ChaeAg self-assigned this Mar 21, 2025
@github-actions github-actions bot requested a review from Kim-TaeUk March 21, 2025 16:31
Copy link
Member

@rinarina0429 rinarina0429 left a comment

Choose a reason for hiding this comment

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

우와! 진짜 간단하게 해결~~ㅋㅋㅋㅋ 이것도 실제로 더 빨라졌나요?

@Slf4j
@Service
@RequiredArgsConstructor
@Async
Copy link
Member

Choose a reason for hiding this comment

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

공식문서 보면 firebaseMessaging.sendAsync()나 firebaseMessaging.sendMulticastAsync() 메서드가 따로 존재하는데,
@Async 붙여주는 식으로 구현한 이유가 있나요!?

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.

[FIX] fcm push 알림 비동기로 동작하도록 방식 변경

4 participants