-
이벤트 기반 아키텍처 스타일-섹션5. 아키텍처란 무엇인가?Architecture/한정헌-마이크로서비스 아키텍처와 MSA패턴이해 2024. 2. 9. 20:05
비동기, 확장성, 고성능
종속성을 느슨하게, 이벤트에 의존
이벤트 기반 마이크로 서비스 아키텍처
↑ 01. Choreography 안무 패턴 - 발레 안무가는 독립적으로 느슨한 결합 형태로 연출
↓ 02. Orchestrator 연출(관현악 지휘자) 패턴
Shopping Mall
3. 공간 기반 아키텍처 스타일
월드컵 티켓 시스템, BTS 예매 시스템등 사용자가 폭발적으로 몰리는 경우
각각이 캐시를 가지고 처리
데이터 동기화는 데이터 복제 엔진이 별도로 진행
SOA 스타일, 서비스 유형을 성격에 따라 나누고 재사용
- 오케스트레이션 엔진을 재사용 하다보니, 의존성이 높아졌고,
-> 잘 안됐음
MSA
Netflix, Coupang, 우아한형제들
분산아키텍처, 성능은 다소 부정적- API에 의존하는 경우, 세분도가 중요
데이터 격리, 재사용 보다 중복, 프로토콜 인지 이종간 상호 운용성
API 레이어, 고도의 디커플링 추가
MSA 서비스 끼리는 다른언어 또는 다른 구조 적용가능
API 레이어 - API Gateway 는 가능한 가볍게, Biz Logic 있으면 안됨
- 마틴 파울러 Smart Endpoints and dumb pipes
똑똑하고 많은일은 하는 것은 각각의 MSA Service
저장소 분리가 중요
최적의 아키텍처 스타일
• 아키텍처 유형은 계속 변한다.
• 결정기준 : 도메인, 데이터 아키텍처, 조직 역량, 개발 프로세스
• 모노리스 vs 분산이냐?
• 데이터를 어디에 둘 것인가?
• 서비스 간 통신 방법• 소프트웨어 아키텍처의 모든 것은 트레이드 오프이다.
• ‘어떻게’ 보다 ‘왜’가 더 중요하다.'Architecture > 한정헌-마이크로서비스 아키텍처와 MSA패턴이해' 카테고리의 다른 글
컨테이너 오케스트레이션 - 섹션7.MSA패턴1-인프라 (1) 2024.02.10 인프라 패턴: VM과 컨테이너 - 섹션7.MSA패턴1-인프라 (0) 2024.02.10 MSA 패턴 유형 - 섹션6. MSA를 외부아키텍처와 내부아키텍처로 구분해서 바라보자 (0) 2024.02.09 서비스기반 아키텍처 스타일-섹션5. 아키텍처란 무엇인가? (0) 2024.02.09 강의소개 (1) 2024.02.09