Skip to Content
마이크로서비스 아키텍처 구축(전면 개정판)
book

마이크로서비스 아키텍처 구축(전면 개정판)

by 샘 뉴먼, 정성권
June 2023
Beginner to intermediate
696 pages
14h 8m
Korean
Hanbit Media, Inc.
Content preview from 마이크로서비스 아키텍처 구축(전면 개정판)
542
2
구현
1
분까지 뒤처질 수 있다. 이제 추천 (
Recommendation
) 마이크로서비스 내부의 클라이언트
측 캐싱이 이뤄지고 있으며, 여기서도
TTL
1
분으로 사용하고 있다. 클라이언트 측 캐시의
항목이 만료되면 추천 마이크로서비스에서 재고 마이크로서비스로 최신 재고 수준을 가져오려
고 요청을 한다. 하지만 우리가 모르는 사이에 요청이 서버 측 캐시에 도달하게 되고, 이 시점
에서 캐시는 최대
1
분 전일 수 있다. 따라서 클라이언트 측 캐시에는 처음으로부터 최대
1
분이
나 지난 레코드가 저장될 수 있다. 즉, 추천 마이크로서비스의 관점에서 재고 수준은 최대
1
밖에 되지 않는다고 생각하지만, 실제로 사용하는 재고 수준은 최대
2
분까지 오래될 가능성이
있다.
이와 같은 문제를 방지하기 위한 여러 방법이 있다. 처음에는 타임스탬프 기반으로 만료하는
것이
TTL
보다 낫겠지만, 이 문제는 캐싱이 실제로 중첩될 때 어떤 문제가 발생하는지 보여주
는 예시이기도 하다. 캐싱된 입력을 기반으로 하는 작업의 결과를 캐싱하는 경우, 최종 결과가
어느 정도나 최신 상태인지 얼마나 명확하게 알 수 있을까?
앞서 소개한 크누스의 유명한 말처럼, 조기 최적화는 문제를 일으킬 수 있다. 캐싱은 복잡성을
증가시키므로 가능한 한 복잡성을 최소화하고자 하며, 캐싱 장소의 ...
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

파이썬으로 살펴보는 아키텍처 패턴

파이썬으로 살펴보는 아키텍처 패턴

오현석, 해리 퍼시벌, 밥 그레고리
견고한 데이터 엔지니어링

견고한 데이터 엔지니어링

조 라이스, 맷 하우슬리
클라우드 네이티브 애플리케이션 디자인 패턴

클라우드 네이티브 애플리케이션 디자인 패턴

카순 인드라시리, 스리스칸다라자 수호티얀
개발 7년차, 매니저 1일차

개발 7년차, 매니저 1일차

권원상, 한민주, 카미유 푸르니에

Publisher Resources

ISBN: 9791169211192