Skip to content
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

๐ŸŽจ ์ฝ”๋“œ์˜ ๊ตฌ์กฐ ๊ฐœ์„  : CQRS ํŒจํ„ด ๋ฏธํก์œผ๋กœ ์ธํ•œ ํŒจํ‚ค์ง€ ๊ตฌ์กฐ ์กฐ์ • #165

Merged
merged 1 commit into from
Oct 19, 2024

Conversation

rowing0328
Copy link
Collaborator

๐Ÿ“‹ ์„ค๋ช…

  • ํŒจํ‚ค์ง€ ๊ตฌ์กฐ ์žฌ๊ตฌ์„ฑ :
    • 'create', 'find', 'update' ํด๋”๋ฅผ 'command'์™€ 'query' ํด๋”๋กœ ์žฌ๊ตฌ์„ฑ
    • BlogFacade๋ฅผ ๋ณ„๋„์˜ facade ํŒจํ‚ค์ง€๋กœ ์ด๋™

  • ์„œ๋น„์Šค ๋„ค์ด๋ฐ ๊ฐœ์„  :
    • ์ฟผ๋ฆฌ ์„œ๋น„์Šค์˜ 'Find' ์ ‘๋‘์‚ฌ๋ฅผ 'Read'์œผ๋กœ ๋ณ€๊ฒฝ
    • ๋ฉ”์†Œ๋“œ ๋„ค์ด๋ฐ์˜ 'find' ์ ‘๋‘์‚ฌ๋ฅผ 'get'์œผ๋กœ ๋ณ€๊ฒฝ

  • CQRS ํŒจํ„ด ์ ์šฉ :
    • Command ์„œ๋น„์Šค์™€ Query ์„œ๋น„์Šค์˜ ์ฑ…์ž„ ๋ช…ํ™•ํžˆ ๋ถ„๋ฆฌ

- ํŒจํ‚ค์ง€ ๊ตฌ์กฐ๋ฅผ command์™€ query๋กœ ์žฌ๊ตฌ์„ฑ

- CQRS ํŒจํ„ด์„ ๋” ์ž˜ ๋ฐ˜์˜ํ•˜๋„๋ก ์„œ๋น„์Šค ์ด๋ฆ„ ๋ณ€๊ฒฝ :
  * ์ฟผ๋ฆฌ ์„œ๋น„์Šค์˜ 'Find' ์ ‘๋‘์‚ฌ๋ฅผ 'Get'์œผ๋กœ ๋ณ€๊ฒฝ

- BlogFacade๋ฅผ ๋ณ„๋„์˜ facade ํŒจํ‚ค์ง€๋กœ ์ด๋™

- ์„œ๋น„์Šค ์ „๋ฐ˜์— ๊ฑธ์ณ ๋ช…๋ช… ๊ทœ์น™์˜ ์ผ๊ด€์„ฑ ๊ฐœ์„ 

Ref : #164
@rowing0328 rowing0328 added the ๐Ÿ“› Rename ํด๋” ๋ฐ ํŒŒ์ผ ์ด๋ฆ„ ๋ณ€๊ฒฝ label Oct 16, 2024
@rowing0328 rowing0328 self-assigned this Oct 16, 2024
@hanseu9839
Copy link
Collaborator

Good

Copy link
Contributor

@parkswon1 parkswon1 left a comment

Choose a reason for hiding this comment

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

CQRS์˜ ์žฅ์ ์€ ๋ญ”๊ฐ€์šฉ

@parkswon1 parkswon1 merged commit 2add549 into main Oct 19, 2024
1 check passed
@parkswon1 parkswon1 deleted the feature/techinfo-blog branch October 19, 2024 05:14
@rowing0328
Copy link
Collaborator Author

rowing0328 commented Oct 19, 2024

CQRS์˜ ์žฅ์ ์€ ๋ญ”๊ฐ€์šฉ

๋ช…๋ น(Create, Update, DeleteI) ๊ณผ (Find) ๋ถ€๋ถ„์„ ๋”ฐ๋กœ ๊ด€๋ฆฌํ•˜์—ฌ ๋„คํŠธ์›Œํฌ ๋ฐ ๋””์Šคํฌ I/O ๋ถ€๋‹ด์„ ๋œ์–ด๋‚ผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋‹ค๋งŒ, ํ˜„์žฌ ์„œ๋น„์Šค ๋ถ€๋ถ„๋งŒ CQRS ํŒจํ„ด์„ ์ฐธ๊ณ ํ•ด์„œ ํŒจํ‚ค์ง€ ์ „๋žต๋งŒ ์ ์šฉํ•œ ์ƒํƒœ์ด๊ณ ,

์ถ”ํ›„์— ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ์™€ ์นดํ”„์นด๋ฅผ ํ™œ์šฉํ•ด์„œ ์ ์ง„์ ์œผ๋กœ ๊ตฌํ˜„ํ•ด ๋‚˜๊ฐˆ ์ƒ๊ฐ์ž…๋‹ˆ๋‹ค..!

@rowing0328 rowing0328 changed the title ๐ŸŽจ ์ฝ”๋“œ์˜ ๊ตฌ์กฐ ๊ฐœ์„  : CQRS ํŒจํ„ด ๋ฏธํก์œผ๋กœ ์ธํ•œ ๊ตฌ์กฐ ์กฐ์ • ๐ŸŽจ ์ฝ”๋“œ์˜ ๊ตฌ์กฐ ๊ฐœ์„  : CQRS ํŒจํ„ด ๋ฏธํก์œผ๋กœ ์ธํ•œ ํŒจํ‚ค์ง€ ๊ตฌ์กฐ ์กฐ์ • Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
๐Ÿ“› Rename ํด๋” ๋ฐ ํŒŒ์ผ ์ด๋ฆ„ ๋ณ€๊ฒฝ
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants