Retry Policy and Exponential Backoff
재시도 정책과 지수 백오프
재시도 정책은 어떤 실패한 작업을 다시 시도할 수 있는지를 결정합니다. 백오프는 각 실패 후 더 긴 대기 시간을 추가합니다.
다른 예시
서비스가 503 오류를 받습니다. 두 번째 시도 전에는 약 1초, 세 번째 시도 전에는 약 2초 기다립니다. 세 번째 시도가 성공합니다.
주요 부분
- 01재시도 가능한 오류
- 02시도 횟수
- 03성장 지연
- 04지터
- 05예산 중지
사용할 때
작업을 반복해도 안전할 경우, 짧은 네트워크 또는 서비스 실패 시 사용하세요.
다음 경우에는 사용하지 마세요
잘못된 입력이나 접근 거부를 재시도하지 마세요. 결제의 경우, 같은 결제가 두 번 실행되지 않도록 하는 키를 먼저 사용하세요.
코드에서 사용된 이름
retryable error + delay * 2 + jitter + attempt budget 출시하기 전에
Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.
Outcome:Complete the task with 재시도 정책과 지수 백오프 (Retry Policy and Exponential Backoff)。 User context:서비스가 503 오류를 받습니다. 두 번째 시도 전에는 약 1초, 세 번째 시도 전에는 약 2초 기다립니다. 세 번째 시도가 성공합니다. Technical concept or control:재시도 정책과 지수 백오프 (Retry Policy and Exponential Backoff)。 Why it fits:작업을 반복해도 안전할 경우, 짧은 네트워크 또는 서비스 실패 시 사용하세요. Do not use it when:잘못된 입력이나 접근 거부를 재시도하지 마세요. 결제의 경우, 같은 결제가 두 번 실행되지 않도록 하는 키를 먼저 사용하세요. Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary):하나의 공식 표준이 전체 용어를 통제하지 않음. 의미는 팀, 플랫폼 또는 프레임워크마다 달라질 수 있음. Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.
이 요청을 확인하세요
Review how 재시도 정책과 지수 백오프 (Retry Policy and Exponential Backoff) is used now. Definition: 재시도 정책은 어떤 실패한 작업을 다시 시도할 수 있는지를 결정합니다. 백오프는 각 실패 후 더 긴 대기 시간을 추가합니다. Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.