Skip to Content
이벤트 기반 마이크로서비스 구축
book

이벤트 기반 마이크로서비스 구축

by 이일웅, 애덤 벨메어
May 2021
Beginner to intermediate
380 pages
7h 48m
Korean
Hanbit Media, Inc.
Content preview from 이벤트 기반 마이크로서비스 구축
201
8
장
마이크로서비스 워크플로 구축
8.4
보상 워크플로
모든 워크플로를 완벽하게 되돌려야 하고 트랜잭션으로 제약을 걸어야 하는 것은 아닙니다. 워
크플로에서 일어날지 모를 예측 불가한 이슈가 한두 가지도 아니라서 많은 경우 그저 최선을
다해 완성도를 높이는 방법 밖에는 없겠죠. 실패할 경우에는 어떻게든 사후 조치를 해서 상황
을 타개하면 됩니다.
이런 접근법은 티켓 예약이나 재고 기반 시스템에서 많이 쓰입니다. 예를 들어 물리적인 제품
을 판매하는 웹사이트는 수많은 동시 트랜잭션
concurrent
transaction
을 처리하기 때문에 고객이 구매
하는 시점에 재고가 없는 경우도 종종 발생합니다. 결제를 처리하고 재고 유무를 확인할 즈음
물건이 없어 주문을 처리할 수 없음을 뒤늦게 판매자가 깨닫는 것이죠. 이 문제를 해결하는 방
법은 몇 가지가 있습니다.
가장 최근 트랜잭션을 롤백시켜 엄격하게 트랜잭션 기반으로 처리하자면,
PG
공급 업체에 환
불하고 고객에게는 주문한 제품이 현재 품절되었으니 주문이 취소됐음을 알려야 하겠죠. 하지
만 이렇게 처리하면 기술적으로 잘못된 부분은 없더라도 기업 이미지가 나빠지고 그간 쌓아 놓
은 신뢰에 금이 갈 것입니다. 이런 불편한 상황은 기업의 고객 만족 정책에 따라 보상 워크플
로
compensating
workflow
를 적용하면 개선할 수 있습니다.
가령, 일종의 보상 형태로 새로운 재고를 주문하고 고객에게는 배송 지연 사실을 알린 다음, 사
과의 뜻으로 다음 구매 시 사용 가능한 할인 쿠폰을 제공하는 ...
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’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
QuotationMarkI 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
QuotationMarkI’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
QuotationMarkI'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.
Mark W.
Embedded Software Engineer

You might also like

헤드 퍼스트 자바(3판)

헤드 퍼스트 자바(3판)

케이시 시에라, 버트 베이츠
클라우드 핀옵스: 비용은 최소화 운영은 최적화

클라우드 핀옵스: 비용은 최소화 운영은 최적화

오성근, J. R. 스토먼트, 마이크 풀러

Publisher Resources

ISBN: 9791162244173