Skip to Content
클라우드 네이티브: 클라우드 네이티브 애플리케이션을 설계, 개발, 운영하는 핵심 가이드
book

클라우드 네이티브: 클라우드 네이티브 애플리케이션을 설계, 개발, 운영하는 핵심 가이드

by 정원천, 보리스 숄, 트렌트 스완슨, 피터 야우쇼베츠
June 2020
Beginner to intermediate
252 pages
4h
Korean
Hanbit Media, Inc.
Content preview from 클라우드 네이티브: 클라우드 네이티브 애플리케이션을 설계, 개발, 운영하는 핵심 가이드
208
클라우드 네이티브
6.2
회복력 확인
회복력은 장애에서 회복하고 함수와 서버 요청을 계속하는 시스템의 능력입니다. 회복력은 장
애를 피하지는 않는 대신에 심각한 다운타임이나 데이터 유실을 피하는 방법으로 장애에 대응
하는 모든 것입니다.
6.2.1
재시도로 일시적인 실패 처리
요청은 네트워크 지연, 커넥션 유실, 다운스트림 서비스가 바빠서 타임아웃 등의 여러 이유로
실패할 수 있습니다. 요청을 재시도하면 이런 실패는 대부분 극복할 수 있습니다. 재시도는 애
플리케이션의 안정성을 개선할 수 있습니다. 하지만 모든 요청을 무조건 재시도하기 전에 요청
을 재시도해야 하는지 확인하는 로직을 넣어야 합니다. 실패가 일시적이지 않거나 재시도가 성
공하지 않으면 해당 구성 요소의 요청을 취소하고 적절한 에러 메시지를 가진 응답을 하는 게
좋습니다. 예를 들어 잘못된 비밀번호를 넣어서 실패한 로그인을 재시도하는 것은 별 도움이
되지 않습니다. 장애가 일시적인 네트워크 문제로 요청을 다시하면 동일한 문제가 발생하지 않
습니다. 마지막으로, 다운스트림 서비스가 바쁘거나 비율 제한 때문에 실패했다면 조금 기다렸
다가 재시도해야 합니다. 다음은 재시도 동작을 처리하는 몇 가지 일반적인 전략입니다.
상수
매번 같은 시간을 기다렸다가 시도합니다.
선형
재시도할 때마다 시간을 꾸준히 증가시킵니다. 예를 들어 처음에
1
초 후 재시도했다면 다음에
3
초 후 재시도, 그다음에는
5
초 후 재시도합니다.
지수백오프
대기 시간을 지수적으로 증가시키면서 재시도합니다. 예를 들어
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: 9791162243183