고 서비스에서 통지 및 결제 서비스로 넘기고 있다. 이는 창고와 같은 마이크로서비스의 복잡
성을 줄이고 시스템의 ‘지능
smarts
’을 보다 고르게 분배할 수 있게 한다.
6
장에서는 코레오그레피
choreography
와 오케스트레이션
orchestration
을 비교하면서 이 아이디어를 더 자세히 살펴본다.
이벤트와 메시지이벤트와 메시지
메시지와 이벤트라는 용어는 종종 혼동을 일으켜왔다. 먼저, 이벤트는 사실(
fact
)이다. 즉, 정확히 무슨 일
이 발생했는지 알려주는 일부 정보와 함께 어떤 일이 발생했다는 진술을 의미한다. 메시지는 메시지 브로커
(
message
broker
)와 같은 비동기 통신 메커니즘을 통해 전송되는 것이다.
이벤트 기반 협업 방식에서는 이벤트를 브로드캐스트하며, 해당 브로드캐스트 메커니즘을 구현하는 일반적
인 방법은 이벤트를 메시지에 넣는 것이다. 메시지는 전달 매체(
medium
)고 이벤트는 페이로드(
payload
)다.
마찬가지로 요청을 메시지의 페이로드로 보내길 원하기도 한다. 이 경우 비동기 요청 및 응답 형식을 구현하
게 된다.
4.8.14.8.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.