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

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

by 이일웅, 애덤 벨메어
May 2021
Beginner to intermediate
380 pages
7h 48m
Korean
Hanbit Media, Inc.
Content preview from 이벤트 기반 마이크로서비스 구축
264
이벤트 기반 마이크로서비스 구축
12.7
스트림-테이블-테이블 조인: 강화 패턴
대규모 온라인 광고사 예제 (
11
.
12
절의 ‘예제: 클릭 및 뷰의 세션 윈도잉’)로 돌아가 이번에는
세션 윈도의 다운스트림 컨슈머 관점에서 살펴보겠습니다. 윈도잉된 세션 이벤트의 포맷은 [표
12
-
1
]과 같습니다.
표
12-1 Advertisement
-
Sessions
스트림 키/값 정의
키 값
WindowKey<Window
windowId
,
String
userId> Action
[]
sequentialUserActions
Action
클래스는 다음 코드와 같습니다.
Action {
Long eventTime;
Long advertisementId;
Enum action; //Click 아니면 View
}
목표는
Advertisement
-
Sessions
스트림을 받아 다음과 같이 작업하는 것입니다.
1
.
각 광고 뷰 액션마다 클릭이 수반됐는지 확인합니다. 뷰-클릭 쌍 각각을 더해서 [표
12
-
2
] 포맷의 광고 변환 이벤트를 출력합니다.
표
12-2 Advertisement
-
Conversions
스트림 키/값 정의
키 값
Long
advertisementId Long
conversionSum
2
.
모든 광고 변환 이벤트를
advertisementId
로 그룹핑 후 값을 더해 총합을 계산합니다. ...
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