은 이벤트 기반 마이크로서비스에서 가장 중요한 근간입니다. 이벤트 스트림을 로컬 상태로 구
체화하는 원리는 이미 앞서 짧게 소개했습니다(
2
.
4
절의 ‘엔티티 이벤트에서 상태를 구체화’ 참
고). 이 장에서는 이벤트 기반 마이크로서비스에서 상태를 생성, 유지, 사용하는 방법에 대해
자세히 살펴보겠습니다.
7.1
상태 저장소, 이벤트 스트림에서 상태 구체화
몇 가지 중요한 용어 정의부터 시작합니다.
구체화(된) 상태(
materialized
state
)
소스 이벤트 스트림의 이벤트를 투영한 것
projection
(불변)
상태 저장소(
state
store
)
서비스가 비즈니스 상태를 저장하는 곳(가변)
구체화 상태와 상태 저장소는 모두 상태 저장 마이크로서비스에서 꼭 필요하며 폭넓게 활용되
160
이벤트 기반 마이크로서비스 구축
지만 두 용어를 분명하게 구분해야 합니다. 구체화 상태는 마이크로서비스에서 공통 비즈니스
엔티티로 사용할 수 있고 상태 ...
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.