feat(chat): Polly TTS 음성 캐싱 및 DynamoDB 최적화 refs #8#10
Merged
Conversation
## 주요 변경사항 ### 음성 캐싱 기능 - 메시지별 음성 S3 키 저장 (maleVoiceKey, femaleVoiceKey) - 캐시 히트 시 Polly 호출 없이 S3 URL 반환 - API 요청 변경: text → messageId, roomId ### DynamoDB 최적화 - GSI2 추가: messageId로 직접 조회 (풀스캔 방지) - findByUserId 페이지네이션 추가 (OOM 방지) - updateLastMessageAt: UpdateExpression으로 N+1 해결 ### 보안 강화 - 채팅방 비밀번호 BCrypt 해싱 ### 성능 개선 - DynamoDbClient Singleton 패턴 (Cold Start 최적화) Closes #9
This was referenced Jan 7, 2026
Closed
hye-inA
pushed a commit
that referenced
this pull request
Jan 23, 2026
…ly-voice-caching feat(chat): Polly TTS 음성 캐싱 및 DynamoDB 최적화 refs #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
목적
변경 요약
핵심 변경
주요 파일/모듈
ChatMessage.java- gsi2pk, gsi2sk, voiceKey 필드 추가ChatMessageRepository.java- GSI2 조회, 페이지네이션ChatRoomRepository.java- updateLastMessageAt (N+1 해결)ChatVoiceHandler.java- 캐싱 로직PollyService.java- 캐싱 로직template.yaml- GSI2, DynamoDB 권한수용 기준 검증
브레이킹/마이그레이션
API 변경 (프론트엔드 수정 필요)
스키마 변경
테스트
참조
Closes #9
Closes #8
refs #7