타나 프레젠테이션, 애플리케이션, 데이터 계층의 변경이 필요하다. 이러한 문제는 아키텍처가
[그림
1
-
2
]의 간단한 예보다 훨씬 더 계층화되면 심각해진다. 각 계층은 더 많은 계층으로 분
할될 때가 많다.
프론트엔드 팀
웹
UI
<<프레젠테이션>>
백엔드
<<비즈니스 로직>>
데이터베이스
<<데이터>>
백엔드 팀
DBA
그림
1-2
전통적 전통적
33
계층 아키텍처계층 아키텍처
서비스를 비즈니스 기능 단위로 (수직으로) 처음부터 끝까지 한 조각으로 만들면, 비즈니스
기능을 최대한 효율적으로 변경하도록 아키텍처를 배치할 수 있다. 우리는 마이크로서비스에
서 기술적 기능의 높은 응집력보다 비즈니스 기능의 높은 응집력을 더 우선시하기로 결정했다.
도메인 주도 설계의 상호작용과 조직 설계가 서로 어떤 관계를 이루는지는 이후 다시 살펴보도
록 한다.
1.2.31.2.3
자기 상태 소유 자기 상태 소유
마이크로서비스가 공유 데이터베이스 사용을 피해야 한다는 생각은 많은 사람을 힘들게 한다.
한 마이크로서비스가 다른 마이크로서비스가 소유한 데이터에 액세스하려면 두 번째 마이크로
서비스에 데이터를 요청해야 한다. 이는 마이크로서비스에 어떤 데이터를 공유하고 감출지 결
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.