-
Notifications
You must be signed in to change notification settings - Fork 1
refactor: 이미지 업로드 pre-signed 방식으로 변경 #58
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
개인적으로 pre-signed방식으로 변경한 것은 좋은 선택인것 같아요!
서버 부담도 적어지고 처리 속도도 개선되겠네요..!
혹시 체감될정도로 빨라졌나요!? 단순한 궁금증입니닷!
| //스탬프 중복 검사체크 | ||
| @Transactional(readOnly = true) | ||
| public boolean checkDuplicateStamp(Long userId, Long missionId) { | ||
| public void checkDuplicateStamp(Long userId, Long missionId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
되게 사소하지만 이러면 더 깔끔할거 같은 느낌!
public void checkDuplicateStamp(Long userId, Long missionId) {
if (stampRepository.existsByUserIdAndMissionId(userId, missionId)) {
throw new BadRequestException(ResponseCode.INVALID_REQUEST);
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 저도 이부분 개선하고 싶었는데 감사합니다!
포스트맨 테스트에서는 577ms -> 81ms로 체감이 될 정도로 빨라지긴 했습니다..!
📝 PR Summary
기존 이미지 업로드 API들을 pre-signed 방식으로 변경했습니다.
미션 생성하기
스탬프 등록하기, 스탬프 수정하기
🌵 Working Branch
refactor/presigned
🌴 Works
🌱 Related Issue
#57