기에 확인될 수 있다. 사실상 이는 작업의 일부를 병렬로 수행하고 있음을 나타낸다. 우리는 호
출 체인의 길이를 줄여 작업의 전반적인 지연 시간이 개선되는 것을 확인할 것이다. 구매 흐름
의 중요 경로에서는 마이크로서비스 하나(이상거래 탐지 서비스)를 제거해 중요한 작업에 대
해 걱정해야 할 의존성을 줄일 수 있다.
이상거래 탐지
이상거래 탐지가
백그라운드로
수행된다
지불하기
이상거래
고객으로 지정
주문 처리기
고객
결제
그림
4-4
이상거래 탐지 서비스를 백그라운드로 옮기면 호출 체인의 길이에 대한 문제를 줄일 수 있다. 이상거래 탐지 서비스를 백그라운드로 옮기면 호출 체인의 길이에 대한 문제를 줄일 수 있다.
물론 워크플로
workflow
를 변경하지 않고도 블로킹 호출을 논블로킹 상호작용 방식으로 교체할
수도 있다. 다음 절에서 살펴보자.
4.54.5
패턴
비동기식 논블로킹비동기식 논블로킹
비동기식 통신을 사용하면, 네트워크를 통해 호출을 보내는 행위가 호출하는 마이크로서비스
를 블로킹하지 않는다. 따라서 응답을 기다릴 필요 없이 다른 처리를 계속할 수 있다. 비동기식
논블로킹 통신은 다양한 형태로 제공되지만, 여기서는 마이크로서비스 아키텍처에서 가장 일
반적인 세 가지 방식을 좀 더 자세히 살펴본다.
공통 데이터를 통한 통신 ...
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.