계약의 일부가 돼 변경 가능한 부분과 변경 불가능한 부분을 쉽게 추론할 수 없게 된다. 어떤
것을 공유하고(그래서 쉽게 변경할 수 없다) 어떤 것을 숨길지 정의하는 기능을 상실했다. 정
보 은닉이란 개념이 사라져버린 셈이다.
한마디로 말해, 내용 결합은 피하라.
2.42.4
딱 도메인 주도 설계만큼 딱 도메인 주도 설계만큼
1
장에서 소개했듯이, 마이크로서비스 경계를 찾는 데 사용되는 기본 메커니즘은 도메인 모델
을 생성하기 위해 도메인 주도 설계
domain
-
driven
design
(
DDD
)를 사용하며 도메인 자체를 중심으
로 진행한다. 이제 마이크로서비스의 맥락에서
DDD
가 작동하는 방식을 좀 더 폭넓게 이해해
보자.
실제 세계처럼 표현하려는 우리 프로그램의 열망은 새로운 것이 아니다. 시뮬라
Simula
와 같은 객
체 지향 프로그래밍 언어는 실제 도메인을 모델링할 수 있도록 개발됐다. 하지만 이러한 생각
이 실제로 구체화되려면 프로그래밍 언어 능력 이상의 것이 필요하다.
에릭 에반스
Eric
Evans
의 『도메인 주도 설계』
1010
는 프로그램에서 문제 영역을 더 잘 표현하는 중요
한 개념들을 제시했다. 그 개념을 깊이 다루는 것은 이 책의 범위를 벗어나지만, 강조할 가치가
있는
DDD
의 일부 핵심 개념을 간략히 설명한다.
보
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.
O’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
I 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
I’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
I'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.