Skip to content
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

[Documentation] AI 추천 문장, FCM 관련 인프라 구조도 #44

Closed
mushroom1324 opened this issue Jan 26, 2024 · 0 comments
Closed
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@mushroom1324
Copy link
Collaborator

mushroom1324 commented Jan 26, 2024

AI 추천 문장, FCM 관련 인프라 구조도

image

EventBridge

  • 랩업 알림 기능을 수행시키는 주체
  • 일정 주기로 Lambda 함수를 호출시켜 구독 주제에 알림을 전송

DynamoDB

  • FcmToken Event Stream 을 받기 위한 저장장치
  • userId와 FcmToken 정보를 받고, event stream으로 Lambda를 트리거하여 INSERT 와 REMOVE 이벤트에 대해 구독 등록 및 취소 로직을 수행시킴
  • EC2 WAS 와 FCM 유저 관리에 대한 디커플링

S3

  • AI 추천 문장을 생성하기 위해 필요한 컨텐츠와 유저 토큰 정보를 저장
  • event stream으로 Lambda를 트리거하여 OpenAI에 생성 요청
  • AI 추천 문장 생성 후 S3에 가공된 데이터를 저장 (분석용)
  • EC2를 통해 RDS DB에 가공된 데이터 저장
  • 해당 유저에게 FCM 알림 전송
  • EC2 WAS 와 AI, FCM 서비스에 대한 디커플링
@mushroom1324 mushroom1324 added the documentation Improvements or additions to documentation label Jan 26, 2024
@mushroom1324 mushroom1324 self-assigned this Jan 26, 2024
@mushroom1324 mushroom1324 pinned this issue Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant