체인지로그는 상태 저장소에 담긴 데이터의 변경 사항을 모두 기록한 것입니다. 상태가 보관된
테이블을 각 이벤트 스트림으로 변환하는 테이블-스트림 이원성의 스트림에 해당합니다. 체인
지로그는 마이크로서비스 인스턴스의 외부에 유지되는 영구적인 상태 사본으로써, [그림
7
-
2
]
처럼 상태를 재구성하거나 이벤트 처리 진행을 체크포인트하는 수단으로 활용됩니다.
TIP
체인지로그에는 이전 처리 결과가 저장되어 있어서 실패한 서비스를 재구성하는 작업을 최적화할 수 있습니
다. 따라서 복구 처리기가 모든 입력 이벤트를 일일이 재처리할 필요가 없습니다.
오프셋
애플리케이션 컨테이너
체인지로그
테이블
그림
7-2
체인지로깅을 하는 상태 저장소
체인지로그는 여느 스트림처럼 이벤트 브로커에 저장되는 스트림이면서 상태 저장소를 재구성
하는 수단입니다. 체인지로그 스트림은 최근 키/값 쌍만 있어도 상태를 재구성할 수 있으므로
컴팩션을 해야 합니다.
체인지로그는 특히 내부 상태 저장소에서 높은 성능으로 상태를 확장/복구할 수 있습니다. 확
장/복구 결과 새로 생성된 애플리케이션 인스턴스는 자신에게 해당하는 체인지로그 파티션에
서 데이터를 로드하기만 하면 됩니다(그림
7
-
3
).
오프셋
애플리케이션 컨테이너
체인지로그
테이블
체인지로그-복구 ...
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.