비즈니스 로직이 여기저기 흩어져 캡슐화가 잘 안 되고 경계 콘텍스트가 잘못 정의돼서 워크플
로 서비스의 소유권을 여러 팀으로 확장시키기가 어려워집니다. 오케스트레이터는 워커 서비
스에게 완전히 책임을 위임하고 자신이 수행하는 비즈니스 로직은 최소화하는 게 좋습니다.
8.2.5
오케스트레이션 워크플로 모니터링
구체화 상태를 쿼리하면 오케스트레이션 워크플로를 가시화할 수 있어 특정 이벤트의 진행 상
황 및 워크플로에서 발생 가능한 이슈를 파악하기 쉽습니다. 또 오케스트레이터 레벨에서 모니
터링, 로깅을 구현하면 워크플로 장애를 유발하는 이벤트를 탐지할 수 있습니다.
8.3
분산 트랜잭션
분산 트랜잭션
distributed
transaction
은 둘 이상의 마이크로서비스에 걸쳐있는 트랜잭션을 말합니다.
마이크로서비스는 각자 트랜잭션에서 자신의 분량을 처리하되 트랜잭션이 중단되어 되돌아갈
경우 처리한 내용을 되돌립니다. 이러한 이행
fulfillment
/역전
reversal
로직은 반드시 동일한 마이크
로서비스 안에 두어야 합니다. 그래야 롤백을 할 수 없을 경우에도 새 트랜잭션이 시작되지 못
하게 할 수 있고 관리 목적으로도 필요하기 때문입니다.
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.