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

feat: AI 요약 lambda 서버 분리, 게시글 생성 시 ai lambda invoke call 처리 #28

Merged
merged 40 commits into from
Jul 3, 2024

Conversation

JonghunAn
Copy link
Member

@JonghunAn JonghunAn commented Jun 29, 2024

PR 내용

  • 별도 AI 요약 요청 lambda server 분리
  • 게시글 생성 시 AI 요약 lambda invoke 호출

추가 및 변경 사항

ai_handler.ts 는 서비스용 lambda가 아니라 ai 요약용 lambda hanlder -> ai 요약글 생성은 다음 피쳐에서 작업예정 (일단 람다 배포부터 그래야 function name으로 호출이 가능해 ㅠㅠ @Marades )

aws_lambda invoke 호출할 수 있도록 lambda module 생성

게시글 생성 시 lambda invoke를 통해 ai 요약 처리 (lambda event queue처리)

PR 중점사항

aws v3 lambda 패키지 사용법
람다 invoke event queue로 호출 참고링크

스크린샷

@github-actions github-actions bot added document 문서화 관련 작업 수정 및 생성 feature labels Jun 29, 2024
@JonghunAn JonghunAn changed the title feat: AI 요약 lambda 분리, 게시글 생성 시 ai lambda invoke call 처리 feat: AI 요약 lambda 서버 분리, 게시글 생성 시 ai lambda invoke call 처리 Jun 29, 2024
// TODO credentials 추가 필요 (acccess_key, secret_key)
readonly client = new LambdaClient({ region: 'ap-northeast-2' });

invoke_lambda(lambdaFunctionName: string, payload: Object): void {
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.

ㅋㅋㅋㅋ 미안함다~

@JonghunAn JonghunAn merged commit 7fafc20 into development Jul 3, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
document 문서화 관련 작업 수정 및 생성 feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants