Skip to content

review_stats 도메인에 관한 질문 #2

Closed Answered by min050410
newnyee asked this question in Q&A
Discussion options

You must be logged in to vote

저도 의견 남기겠습니다 ㅎㅎ

일단 처음으로 Review와 Review stat 엔티티는 Bounded Context 원칙을 적용한 것이기 때문에
일단 두개의 엔티티는 같은 도메인 상에 있어야 한다고 생각합니다!

저번에 저희가 작업했던 Feed와 HashTag의 경우에는 완전히 종속되어 있었습니다.
이번 프로젝트의 경우에도, Restaurant과 Review는 종속되어 있습니다.
Review의 이름이 Restaurant-Review로 바뀌어도 별 위화감이 없다는 것은 종속되어 있다는 증거입니다.
리뷰가 "레스토랑"의 리뷰이기 때문이지요.

그렇기 때문에 개인적으로 Restaurant 도메인 안에 Review 엔티티를 둘 것 같습니다. 😄
만약에 Review가 다른 리뷰에도 쓸 수 있다면 그때엔 리뷰 도메인을 분리했을 것 같네요 ex) 당근마켓 매너 온도 리뷰

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@newnyee
Comment options

newnyee Nov 1, 2023
Maintainer Author

@kmss6905
Comment options

@buhee1029
Comment options

Answer selected by newnyee
Comment options

You must be logged in to vote
0 replies
Comment options

newnyee
Nov 1, 2023
Maintainer Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants