Circuit Breaker
회로 차단기
서킷 브레이커는 실패할 가능성이 있는 원격 서비스로의 호출을 중단합니다. 이후 몇 번의 테스트 호출로 서비스가 회복되었는지 확인합니다.
closed -> failure threshold -> open -> cool-down -> half-open probe -> closed | open10초원격 호출 없음closed -> failure threshold -> open -> cool-down -> half-open probe -> closed | openSRE다른 예시
다섯 번의 결제 실패가 브레이커를 30초 동안 열게 합니다. 체크아웃은 명확한 메시지와 함께 빠르게 실패합니다. 이후 한 번의 탐색이 성공하여 브레이커를 닫습니다.
주요 부분
- 01닫힌 상태
- 02실패 카운터 및 윈도우
- 03열림 상태
- 04쿨다운 시간
- 05하프-오픈 프로브
- 06대체 및 알림
사용할 때
느리거나 깨진 상태로 유지되는 원격 의존성 주변에서 사용하세요. 임계값, 열려 있는 시간, 테스트 트래픽, 폴백, 경고를 조정하세요.
다음 경우에는 사용하지 마세요
HTML을 로컬 검증 오류에 사용하지 마십시오. 재시도를 대신하지 않습니다. 재시도는 짧은 오류를 처리하며, 차단기는 발생 가능성이 높은 실패를 막습니다.
코드에서 사용된 이름
closed -> failure threshold -> open -> cool-down -> half-open probe -> closed | open 출시하기 전에
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 회로 차단기 (Circuit Breaker)。 User context:다섯 번의 결제 실패가 브레이커를 30초 동안 열게 합니다. 체크아웃은 명확한 메시지와 함께 빠르게 실패합니다. 이후 한 번의 탐색이 성공하여 브레이커를 닫습니다. Technical concept or control:회로 차단기 (Circuit Breaker)。 Why it fits:느리거나 깨진 상태로 유지되는 원격 의존성 주변에서 사용하세요. 임계값, 열려 있는 시간, 테스트 트래픽, 폴백, 경고를 조정하세요. Do not use it when:HTML을 로컬 검증 오류에 사용하지 마십시오. 재시도를 대신하지 않습니다. 재시도는 짧은 오류를 처리하며, 차단기는 발생 가능성이 높은 실패를 막습니다. 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 회로 차단기 (Circuit Breaker) 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.