Skip to content

Conversation

@sosow0212
Copy link
Contributor

@sosow0212 sosow0212 commented Dec 7, 2025

📄 작업 내용

  • 이미지 객체를 생성했습니다.

패키지나 리뷰 등등 다른 애그리거트에서 사용할 수 있도록 범용적인 이미지 객체를 설계했습니다.

기본적으로 다른 애그리거트에서 이미지 저장할 때 Event를 발신하면 ImageEventListener에서 수신해서 비동기로 이미지를 저장하게 됩니다.

이미지용 비동기 쓰레드풀을 별도로 생성해서 클라우드 응답이 지연되어도 다른 요청에는 지장이 없도록 설정했습니다.

🙋🏻 이슈 / 궁금증 / 추가사항

close #13

@sosow0212 sosow0212 self-assigned this Dec 7, 2025
@sosow0212 sosow0212 added the feat 기능 추가 label Dec 7, 2025
Copy link
Contributor

@gustj3104 gustj3104 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

따로 이견 없어요 수고하셨습니다!

Comment on lines 33 to 34
@Column(name = "unique_filename", nullable = false, length = 255)
val uniqueFilename: String,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이미지를 식별하기 위한 파일명인가요?? Id, Uniquefilename 둘 다 필요한 건지 궁금합니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ex. originalFileName이 이미지.jpg인데, 중복된 파일명이 또 저장되는 경우를 예방하기 위해서 uuid기반의 uniqueName을 추가해습니다! db에서 식별은 id만 있어도 되지만 물리 환경에선 클라우드냐 로컬이냐에 따라서 uniqueName도 필요할 수 있어서요

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

스토리지 식별자로 사용되는 부분 이해했어요 감사합니다! 그럼 혹시 url은 가변적이어서 식별자로 사용하지 않는 걸까요?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넵 스토리지가 구글클라우드, aws, 클라우드플레어 등등 변경될 수 있고 가변적이라 생각해서 식별자로 사용하지 않았습니다~

@sosow0212 sosow0212 merged commit 514c190 into develop Dec 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat 기능 추가

Projects

None yet

Development

Successfully merging this pull request may close these issues.

이미지 기능 추가

3 participants