Refactor/#19 s3 이미지 url 저장 구조 개선 객체 키 기반 저장#22
Open
Conversation
jinwon1234
reviewed
Sep 13, 2025
Collaborator
jinwon1234
left a comment
There was a problem hiding this comment.
리팩토링하느라 수고하셨습니다! 마이그레이션 코드 관련해서는 딱히 드릴 말씀이 없는 것 같습니다.
하나 걱정되는 것은 제가 이미지 관련 코드를 쭉 살펴봤는데, 회원 탈퇴, 팀 삭제, 게시글 삭제 모두 이미지 삭제를 DB에서만 진행하고 S3에서는 삭제를 안해주고 있네요..! 이 부분 고려해서 나중에 S3 고아 객체 관리까지 추가하면 될 것 같습니다!
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.
🔥 관련 이슈
📝 작업 상세 설명
AWS 계정 이동으로 인한 S3 버킷명 변경과 함께 이미지 저장 구조를 근본적으로 개선했습니다! DB 부분만 우선 급히 조정한 이유는 운영 서버 DB를 빠르게 손 봐야하기 때문입니다!
현재 운영 서버 DB의
article테이블 내articlebody컬럼을 보시면 이미지가 포함된 경우이는 기존에 S3 presigned url을 사용하지 않는 경우, 백엔드 단으로 요청이 올 때 일단 ?로 두고 이미지를 따로
article_image테이블 내에서 저장하였기 때문입니다. 이를 개선하는 작업을ArticleBodyImageMigration.java를 통해 진행하였습니다.이미지를 저장하는 경우는 총 3가지(게시글, 프로필 사진, 팀 사진)인데 이 모든 경우 객체키값만을 저장하도록 치환해주었습니다.
⭐ 리뷰 포인트
이후에 해야할 작업이 남아있습니다!