Skip to Content
마이크로서비스 아키텍처 구축(전면 개정판)
book

마이크로서비스 아키텍처 구축(전면 개정판)

by 샘 뉴먼, 정성권
June 2023
Beginner to intermediate
696 pages
14h 8m
Korean
Hanbit Media, Inc.
Content preview from 마이크로서비스 아키텍처 구축(전면 개정판)
99
2
마이크로서비스 모델링 방법
2.4.22.4.2
애그리거트 애그리거트
DDD
에서 애그리거트
aggregate
는 다소 혼동되는 개념이자 다양한 정의가 존재한다. 애그리거트
는 단순히 임의의 객체 모음일까? 데이터베이스에서 꺼내야 할 가장 작은 단위는 무엇일까? 필
자에게 항상 효과가 있었던 모델은 먼저 애그리거트를 실제 도메인 개념의 표현으로 생각하는
것이었다. 주문, 송장, 재고 물품 등을 생각해보자. 애그리거트는 일반적으로 수명주기가 있으
므로 상태 기계
state
machine
로 구현할 수 있다.
뮤직코프 도메인의 예에서 주문 애그리거트에는 주문의 품목을 나타내는 여러 행의 품목이 포
함될 수 있다. 이 품목 행은 전체 주문 애그리거트의 일부로만 그 의미가 있다.
우리는 애그리거트를 독립된 단위로 취급하길 원해서 애그리거트의 상태 전환을 처리하는 코
드와 상태를 함께 묶으려 한다. 따라서 하나의 마이크로서비스는 여러 애그리거트를 관리할 수
있지만, 하나의 애그리거트는 하나의 마이크로서비스에서 관리돼야 한다.
하지만 일반적으로 애그리거트는 시스템의 일부로 관리될 상태, 고유함
identity
, 수명주기를 가진
것으로 생각해야 한다. 애그리거트는 일반적으로 실제 세계의 개념을 나타낸다.
하나의 마이크로서비스는 하나 이상의 서로 다른 종류의 애그리거트에 대한 수명주기와 데이
터 저장소를 처리한다. 다른 서비스의 기능이 애그리거트 중 하나를 변경하려는 경우 해당 애
그리거트에 직접 변경을 요청하거나 애그리거트 스스로 시스템의 다른 구성 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

파이썬으로 살펴보는 아키텍처 패턴

파이썬으로 살펴보는 아키텍처 패턴

오현석, 해리 퍼시벌, 밥 그레고리
견고한 데이터 엔지니어링

견고한 데이터 엔지니어링

조 라이스, 맷 하우슬리
클라우드 네이티브 애플리케이션 디자인 패턴

클라우드 네이티브 애플리케이션 디자인 패턴

카순 인드라시리, 스리스칸다라자 수호티얀
개발 7년차, 매니저 1일차

개발 7년차, 매니저 1일차

권원상, 한민주, 카미유 푸르니에

Publisher Resources

ISBN: 9791169211192