Skip to Content
자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴
book

자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴

by 조너선 슈나이더, 정병열
March 2022
Beginner to intermediate
348 pages
7h 5m
Korean
Hanbit Media, Inc.
Content preview from 자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴
328
자바 마이크로서비스를 활용한
SRE
Resilience4J
는 재시도 메트릭을 내장한다. [예제
7
-
8
]은 마이크로미터 레지스트리에 재시도
레지스트리를 바인딩하는 구문이다.
예제
7-8
마이크로미터를 통한 재시도 메트릭 게시
TaggedRetryMetrics
.ofRetryRegistry(retryRegistry)
.bindTo(meterRegistry);
이 코드는 단일 게이지 메트릭인
resilience4j
.
retry
.
calls
를 추가한다. 함께 포함된
kind
태그는 성공한 호출과 실패한 호출을 재시도 여부로 분류해서 나타낸다. 이 메트릭에 경
고를 설정하면
kind
가
fail
.
with
.
retry
에 설정된 고정 임곗값을 넘어섰는지 알 수 있다.
호출이 발생하는 코드는 대부분 자체적으로 실행 시간을 측정한다. 가령 특정 작업을 수행하
는 레스트 엔드포인트가 있고 다운스트림 서비스에 재시도 기능을 제공한다면
http
.
server
.
requests
메트릭을 통해 자체적인 실행 시간을 측정할 수 있다. 이 엔드포인트는 경고를 설정
해 미리 장애를 인지해야 한다.
특정 서비스에 접근을 제한하는 공통 컴포넌트가 있다면 재시도 로직이 포함된 리소스를 보호
하기 쉽다. 리소스 장애율이 높아질 때 경고를 받으면 애플리케이션에 다발적으로 장애가 발생
할 가능성을 사전에 ...
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

처음 시작하는 파이썬: 파이썬 패키지를 활용한 모던 컴퓨팅 입문

처음 시작하는 파이썬: 파이썬 패키지를 활용한 모던 컴퓨팅 입문

최길우, 빌 루바노빅

Publisher Resources

ISBN: 9791162245286