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

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

by 이일웅, 애덤 벨메어
May 2021
Beginner to intermediate
380 pages
7h 48m
Korean
Hanbit Media, Inc.
Content preview from 이벤트 기반 마이크로서비스 구축
283
13
장
이벤트 기반 마이크로서비스와 요청 - 응답 마이크로서비스의 통합
사용자
GUI
사용자
GUI
마이크로서비스
마이크로서비스
요청을 직접 처리
1
) 객체 생성
객체 스트림
요청을 이벤트로 변환
1
) 객체 생성
객체
CRUD
2
) 객체 이벤트
생성
2
) 객체를
직접
DB
에
생성
3
) 객체 발행
4
) 스트림 구체화
그림
13-10
요청을 직접 처리하는 방식 대 이벤트로 먼저 변환하는 방식
[그림
13
-
10
]의 왼쪽 그림은 객체를 생성하고
DB
에 직접 기록하는 전통적인 방식입니다. 오
른쪽 그림은 먼저 요청을 이벤트로 파싱하여 해당 이벤트 스트림에 발행한 다음, 이벤트 기반
워크플로가 이벤트를 소비하기 전에 비즈니스 로직을 적용해서
DB
에 저장하는 이벤트 우선
event
-
first
방식입니다.
이벤트를 우선 이벤트 스트림에 기록하면 이벤트는 계속 보존되므로 모든 서비스가 이 데이터
를 구체화하여 쓸 수 있는 큰 장점이 있습니다. 그러나 그만큼 지연이 발생하고 서비스가 결과
를 사용하려면 데이터 저장소에 구체화될 때까지 기다려야 하는 단점도 있습니다(최종 일관적
인 쓰기 후 읽기
eventually
-
consistent
read
-
after
-
write
). 값을 객체 스트림에 성공적으로 기록한 다음에 애
플리케이션이 처리할 때 사용할 수 있도록 값을 메모리에 유지하면 어느 정도 지연을 ...
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