Skip to Content
마이크로서비스 아키텍처 구축(전면 개정판)
book

마이크로서비스 아키텍처 구축(전면 개정판)

by 샘 뉴먼, 정성권
June 2023
Beginner to intermediate
696 pages
14h 8m
Korean
Hanbit Media, Inc.
Content preview from 마이크로서비스 아키텍처 구축(전면 개정판)
145
4
마이크로서비스 통신 방식
4.4.14.4.1
장점 장점
동기식 블로킹 호출에는 간단하고 친숙한 무언가가 있다. 우리 대부분은 기본적으로 동기 방식
의 프로그래밍 (예: 스크립트와 같은 코드 조각을 읽어와 차례로 각 라인이 실행되고 다음 코드
라인이 작업을 위해 차례를 기다리는 것)을 배웠다. 프로세스 간 호출을 사용했던 대부분의 상
황에서는 동기식 블로킹 방식(예: 데이터베이스에서
SQL
쿼리를 실행하거나 다운스트림
API
에 대한
HTTP
요청을 만드는 것 )으로 수행했을 것이다.
단일 프로세스의 모놀리스와 같이 덜 분산된 아키텍처에서 전환할 때 새로운 일이 벌어진다면
익숙한 아이디어를 고수하는 것이 합리적이다.
4.4.24.4.2
단점 단점
동기식 호출의 주요 문제점은 고유한 시간적 결합에 있다.
2
장에서 이 주제를 간략히 살펴봤는
데, 그 예에서는 주문 처리기가 멤버십 (
Loyalty
)을 호출할 때 호출이 작동하려면 멤버십 마
이크로서비스에 연결할 수 있어야 한다. 만약 멤버십 마이크로서비스가 가용하지 않으면 호출
은 실패하고 주문 처리기는 수행할 보상 작업의 종류를 결정해야 한다. 보상 작업에는 즉각적
인 재시도, 나중에 재시도하기 위한 호출 버퍼링 또는 아예 포기하는 것이 포함될 수 있다.
이 결합은 양방향이다. 이러한 통합 방식을 사용하면 일반적으로 응답은 동일한 인바운드 네트
워크 연결을 통해 업스트림 마이크로서비스에 전송된다. 따라서 멤버십 마이크로서비스는 다
시 주문 처리기에 응답을 보내려고 하지만, 업스트림 인스턴스가 ...
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

파이썬으로 살펴보는 아키텍처 패턴

파이썬으로 살펴보는 아키텍처 패턴

오현석, 해리 퍼시벌, 밥 그레고리
견고한 데이터 엔지니어링

견고한 데이터 엔지니어링

조 라이스, 맷 하우슬리
클라우드 네이티브 애플리케이션 디자인 패턴

클라우드 네이티브 애플리케이션 디자인 패턴

카순 인드라시리, 스리스칸다라자 수호티얀
개발 7년차, 매니저 1일차

개발 7년차, 매니저 1일차

권원상, 한민주, 카미유 푸르니에

Publisher Resources

ISBN: 9791169211192