단 수직 분할한 것을 담당하고 브라질 팀이 다른 기능에 대해 이와 같이 분할한 부분을 담당하
는 것이다.
프론트엔드 웹 사이트
데이터 액세스 서비스
데이터베이스
캘리포니아 팀
외부의 요청
RPC
브라질 팀
그림
2-19
기술 이음새(경계)에 따라 분리된 서비스 경계 기술 이음새(경계)에 따라 분리된 서비스 경계
내부 계층화와 내부 계층화와 외부 계층화외부 계층화
지금쯤이면 아마도 눈치챘겠지만, 필자는 수평적 계층 구조를 그다지 좋아하지 않는다. 하지만 계층화가 필
요한 곳이 있다. 마이크로서비스 경계 내에서 코드를 더 쉽게 관리할 수 있도록 서로 다른 계층으로 구분하는
것은 매우 합당하다. 단, 이 계층화가 마이크로서비스와 소유권 경계를 나타내는 메커니즘이 될 때는 문제가
발생한다.
2.72.7
혼합 모델과 예외 혼합 모델과 예외
지금까지 분명히 말했듯이 필자는 경계를 찾는 방법에 대해 독단적이지 않다. 정보 은닉의 지
침을 따르고 결합과 응집력의 상호작용을 이해한다면 어떤 메커니즘을 선택하든 최악의 함정
을 피할 수 있다. 이러한 개념들에 중점을 둔다면 도메인 주도 아키텍처가 될 가능성이
더더
높다
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.