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

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

by 이일웅, 애덤 벨메어
May 2021
Beginner to intermediate
380 pages
7h 48m
Korean
Hanbit Media, Inc.
Content preview from 이벤트 기반 마이크로서비스 구축
215
9
장
FaaS 응용 마이크로서비스
9.8.1
이벤트 기반 통신 패턴
한 함수의 출력을 이벤트 스트림에 넣어 다른 함수가 소비하게 만들 수도 있습니다. 경계 콘텍
스트는 여러 함수와 내부 이벤트 스트림으로 구성되며 함수마다 구현된 트리거와 확장 로직은
다양합니다. 각 함수는 자기 페이스에 맞게 이벤트를 받아 처리하고 주어진 작업을 실행하면서
그에 맞는 결과를 출력합니다 (그림
9
-
3
).
경계 콘텍스트
이벤트
스트림
1
이벤트
스트림
2
이벤트
스트림
3
함수
A
함수
B
함수
C
그림
9-3
여러 함수로 구성된 이벤트 기반의
FaaS
토폴로지가 하나의 마이크로서비스를 나타낸다.
[그림
9
-
3
]에서 함수
A
는 함수
B
,
C
와 독립적으로 트리거됩니다. 스트림
2
,
3
은 이 경계 콘텍
스트 외부에 있는 함수는 접근 불가한 내부 이벤트 스트림입니다. 함수
B
,
C
는 같은 경계 콘텍
스트에 배치되어 있으므로 동일한 컨슈머 그룹을 사용하여 소스 스트림에 있는 이벤트를 소비
합니다. 이처럼 함수는 다른 비
FaaS
마이크로서비스와 사실상 작동 방식이 같습니다.
이벤트 기반 통신 패턴은 여러모로 장점이 많습니다. 우선, 토폴로지 안에 있는 함수는 각각 작
업이 끝나면 오프셋을 커밋해서 자신의 컨슈머 그룹 오프셋을 관리할 수 있습니다. 또 이벤트
스트림 처리 외에는 함수 간에 별다른 ...
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