Repository navigation
perf(profile): 올린 프로필 사진은 받은 바이트로 심사한다 - #364
Merged
Merged
Conversation
S3 에 저장한 직후 공개 주소(/files/...)로 같은 사진을 다시 내려받아 심사하느라 prod 에서 ~0.66초가 더 걸렸다(X-Ray 1-6ae1d6f6). 제출값이 방금 올린 URL 과 같을 때만 바이트를 쓰고, 그 사이 바뀌었으면 기존처럼 URL 로 받는다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
selee1012
force-pushed
the
fix/profile-image-moderate-bytes
branch
from
October 28, 2026 13:34
7991b7b to
0c5fb2a
Compare
Test Coverage
|
Test Coverage
|
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.
무엇
프로필 사진 업로드 직후 심사를, 서버가 받은 바이트로 바로 한다.
왜
지금은 S3 저장 뒤 같은 사진을 공개 주소(
https://prod.ruleup.co.kr/files/...)로 다시 내려받아 심사한다. prod 트레이스에서 이 왕복만 ~0.66초(업로드 전체 중앙값 0.85초·최대 2.1초).어떻게
UserModerationService.moderate(userId, UploadedImage)오버로드 — 지금 제출값(profile_image_key)이 방금 올린 URL 과 같을 때만moderateImageBytes를 쓰고, 그사이 바뀌었으면 기존처럼 URL 로 받는다.ProfileService.uploadImage는validate→storeValidated로 나눠 검증된 바이트를 넘긴다.확인
OnboardingApiContractIT「올린 사진은 받은 바이트로 심사한다」:moderateImageBytes(바이트, image/png)1회,moderateImage(url)0회🤖 Generated with Claude Code