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

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

by 이일웅, 애덤 벨메어
May 2021
Beginner to intermediate
380 pages
7h 48m
Korean
Hanbit Media, Inc.
Content preview from 이벤트 기반 마이크로서비스 구축
228
이벤트 기반 마이크로서비스 구축
고 그만큼 저장 공간은 다시 확보됩니다. 각 사용자마다 외부 데이터 저장소에 보관하는 집계
데이터는 다음 표와 같습니다.
키 값
userId
,
timestamp List
(
productId
)
서비스 처리 수요는 제품 사용자의 수면/기상 주기에 따라 왔다 갔다 합니다. 사용자가 대부분
잠자리에 드는 밤에는 낮보다 처리 파워가 거의 필요 없기 때문에 비용 절감 차원에서 서비스
규모를 낮추어 처리 능력을 아끼는 게 현명하겠죠.
파티션 어사이너를 이용하면 입력 이벤트 스트림 파티션을 단일 처리기 인스턴스에 재할당할
수 있으므로 모든 사용자 이벤트의 소비/처리를 조정할 수 있습니다. 단, 이벤트량이 줄어도
잠재적인 사용자 영역은 일정하므로 서비스는 모든 사용자 집계에 완전히 접근할 수 있는 권한
이 필요합니다. 처리 규모를 줄여도 서비스가 유지해야 할 상태 크기에는 아무런 영향을 미치
지 않는 것입니다.
낮에는 처리 인스턴스를 추가해서 늘어난 이벤트 부하를 처리하면 됩니다. 물론 데이터 저장소
를 조회하는 비율도 함께 증가하겠지만 캐싱, 파티셔닝, 배칭 등의 기법을 이용하면 처리 요건
자체가 선형적으로 증가하는 것에 비해 부하를 가볍게 유지할 수 있습니다.
TIP
구글, 아마존, 마이크로소프트 같은 서비스 공급사는 이런 패턴에 딱
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