다양한 구현과도 관련 있는 통신 방식은 공통 데이터를 통한 통신이다. 이 패턴은 하나의 마이
크로서비스가 데이터를 정의한 위치에 넣고 다른 마이크로서비스(또는 여러 마이크로서비스)
가 그 데이터를 이용할 때 사용된다. 하나의 마이크로서비스가 특정 위치에 파일을 떨구고 나
중에 다른 마이크로서비스가 해당 파일을 집어 들어 작업을 수행하는 것처럼 간단할 것이다.
이러한 통합 방식은 기본적으로 비동기식이다.
그 방식의 한 가지 예를 보여주는 [그림
4
-
6
]에서 신제품 수입자(
New
Product
Importer
)는
다운스트림의 재고(
Inventory
) 및 카탈로그(
Catalog
) 마이크로서비스가 읽는 파일을 생성
한다.
신제품 수입자
카탈로그
재고
신제품 파일
그림
4-6
하나의 마이크로서비스가 파일을 작성하고 다른 마이크로서비스들은 그 파일을 사용한다. 하나의 마이크로서비스가 파일을 작성하고 다른 마이크로서비스들은 그 파일을 사용한다.
이 패턴은 어떤 면에서 가장 흔한 일반적인 프로세스 간 통신 패턴이지만, 프로세스 간 통신이
너무 간접적이어서 눈에 잘 띄지 않는 경우가 많기 때문에 통신 패턴으로 인식하지 못하는 경
우가 종종 있다.
4.6.14.6.1
구현
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.