Skip to Content
이벤트 기반 마이크로서비스 구축
book

이벤트 기반 마이크로서비스 구축

by 이일웅, 애덤 벨메어
May 2021
Beginner to intermediate
380 pages
7h 48m
Korean
Hanbit Media, Inc.
Content preview from 이벤트 기반 마이크로서비스 구축
173
7
장
상태 저장 스트리밍
이용해 얼마든지 다시 채워넣을 수 있습니다. 소스 스트림에서 재구성하는 경우와 마찬가지로
새로운 상태 저장소 사본을 만들어야 합니다. 마이크로서비스 컨슈머 인스턴스는 처리를 재개
하기 전에 체인지로그에 저장된 전체 상태를 재구성해야 합니다.
WARNING
_
소스 이벤트 스트림이나 체인지로그에서 외부 상태 저장소를 재구성하는 작업은 네트워크 지
연 때문에 시간이 아주 오래 걸릴 수 있습니다. 이런 상황도 여러분의 마이크로서비스
SLA
에 문제가 없는지
꼭 확인하세요.
스냅샷 사용
외부 상태 저장소는 자체 백업/복구 프로세스를 제공하는 경우가 일반적입니다. 실제로 많은
호스티드 서비스 업체가 간단한 ‘원클릭
one
-
click
’ 솔루션을 제공합니다. 주어진 상태 저장소 구현
체에 알맞게 상태를 캡처/복구하는 모범 사례를 따르는 게 좋습니다.
저장된 상태가 멱등적이라면 오프셋과 구체화 상태가 정확히 일치하는지 일일이 확인할 필요
는 없습니다. 이 때 컨슈머 오프셋을 스냅샷을 찍기 몇 분 전 값으로 세팅할 경우 유실되는 데
이터가 없도록 주의해야 합니다. 이렇게 해야 이벤트의 ‘적어도 한 번 이상’ 처리가 보장됩니다.
저장된 상태가 멱등적이지 않고 중복 이벤트를 수용 불가한 경우에는 컨슈머 오프셋을 데이터
안에 넣어 데이터 저장소에 보관해야
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

헤드 퍼스트 자바(3판)

헤드 퍼스트 자바(3판)

케이시 시에라, 버트 베이츠
클라우드 핀옵스: 비용은 최소화 운영은 최적화

클라우드 핀옵스: 비용은 최소화 운영은 최적화

오성근, J. R. 스토먼트, 마이크 풀러

Publisher Resources

ISBN: 9791162244173