Open
Conversation
securityConfig에 차단하도록 설정한 이름이 USER일 경우 ROLE_USER와 일치하는지 확인함,,
won983212
approved these changes
Feb 13, 2023
Collaborator
won983212
left a comment
There was a problem hiding this comment.
사진 업로드 방식
네. s3를 사용하지 않으신다면 말씀하신 방식이 좋아보입니다.
총 요청이 2번오는건 크게 신경쓰지 않으셔도 됩니다. 브라우저에서 html을 로드하면서 img를 로드하는 방식도 유사합니다. html을 읽고, 해당 url로 image를 또 요청해서 받아오는 방식입니다.
redis, refresh token
Redis는 캐시 서버처럼 쓰입니다. db에 자주 읽거나 쓰는 데이터를 redis에 두면 효과적입니다.
refresh token은 자주 읽고, 쓰는 데이터입니다. (물론 토큰 만료시간에 따라 다릅니다.) 여기에 redis를 도입하면 db와 spring사이의 지연 시간을 줄일 수 있습니다.
물론 작은 규모의 프로젝트라면 굳이 redis까지는 도입하지 않아도 될 것 같습니다.
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등의 서비스를 사용하지 않는 지금
이러한 방식으로 가는게 맞을 지 확신이 들지 않아 여쭤보고싶습니다.
이번 주는 어떻게 학습했나요? 아래 질문에 짧게 답변주세요!
이번 주에 학습에 투자한 시간
학습 하면서 좋았던 점과 아쉬웠던 점
어려움을 겪는 부분
스터디 개선되었으면 하는 점