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

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

by 조너선 슈나이더, 정병열
March 2022
Beginner to intermediate
348 pages
7h 5m
Korean
Hanbit Media, Inc.
Content preview from 자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴
108
자바 마이크로서비스를 활용한
SRE
// 인스턴스, 볼륨, 오토스케일링 그룹 등
});
}
스프링부트 등 일부 프레임워크는 [예제
2
-
44
]처럼
longTask
속성이
true
로 설정된
@
Timed
어노테이션을 인식하고 장기 작업 타이머로 생성한다.
예제
2-44
예약 작업에 어노테이션 기반으로 장기 작업 타이머 설정
@Timed(name = "aws.scrape", longTask = true)
@Scheduled(fixedDelay = 360000)
void scrapeResources() {
// 인스턴스, 볼륨, 오토스케일링 그룹 등
}
이 프로세스가 임계치를 넘는 순간을 감지하고 경고 알림을 받을 수 있다. 장기 작업 타이머는
임계치 초과 시점 이후 발생하는 최초 보고 시점에 경고를 보낸다. 일반 타이머를 사용하면 프
로세스가 완료되고 나서야 경고가 발생한다.
1
시간 정도 걸릴 수도 있다.
2.13
미터 타입 선정
2
.
3
절에서 설명한 계층형 메트릭 시스템 라이브러리는 통상적으로 게이지와 카운터만 지원했
다. 이러한 제약에 적응하면 요청 처리량 같은 비율 데이터를 미리 계산해서 게이지로 게시하
는 습관이 생긴다. 마이크로미터는 항상 비율로 유도할 수 있는 방식으로 카운터를 노출시키기
때문에 애플리케이션 코드에서 수동으로 비율을 계산할 필요가 없다.
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