Skip to content

refactor: Presigend URL 도입 #188

@dl-00-e8

Description

@dl-00-e8

💼 IssueName

이슈 명을 작성해주세요.

Presigned URL 도입

📝 Description

이슈에 대해 간결하게 설명해주세요.

기존에 AWS S3 파일 업로드 방식은 아래와 같았습니다.

flowchart LR

Client--파일 전달-->Server
Server--파일 업로드-->S3
Loading

서버에 파일을 업로드해야 하며, 이는 서버 내의 메모리에 파일을 임시 저장해야 하는 상황이므로 프리티어 EC2를 사용하고 있는 입장에서, 부담이 될 수 있기에 이를 아래와 같은 방식으로 변경합니다.

flowchart LR

Client--파일 업로드 요청-->Server
Server--Presigned URL 발급 요청-->S3
S3--Presigned URL 반환-->Server
Server--Presigend URL 반환-->Client
Client--Presigned URL로 파일 업로드-->S3
Loading

❗️ Todo

  • Presigned URL 발급 함수 구현
  • 기존 파일 업로드 API 모두 수정

Metadata

Metadata

Assignees

Labels

refactor리팩토링 시

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions