Request Deadline
요청 기한
요청 기한은 클라이언트가 더 이상 기다리지 않는 시간입니다. 각 하위 호출은 남은 시간만 받아야 합니다.
absolute deadline -> remaining timeout -> propagate -> cancel -> stop spawned work13:00:00.800620ms 남음absolute deadline -> remaining timeout -> propagate -> cancel -> stop spawned workSRE다른 예시
체크아웃은 800ms로 시작합니다. API는 남은 620ms 동안 인벤토리에 시간을 제공합니다. 호출은 0에서 취소됩니다. 서버는 그 후 생성된 작업을 중지합니다.
주요 부분
- 01시작 시간
- 02절대 기한
- 03경과 시간
- 04남은 시간
- 05취소 신호
- 06정리 경로
사용할 때
원격 호출에 마감 시간을 설정합니다. 사용자 요구와 측정된 지연 시간을 기준으로 선택합니다. 남은 시간을 호출 체인을 통해 전달합니다.
다음 경우에는 사용하지 마세요
데이터 없이 작은 수를 선택하지 마십시오. 기다림을 중단하는 것만으로는 충분하지 않습니다. 서버는 취소를 인지하고 작업을 중단해야 합니다.
코드에서 사용된 이름
absolute deadline -> remaining timeout -> propagate -> cancel -> stop spawned work 출시하기 전에
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 요청 기한 (Request Deadline)。 User context:체크아웃은 800ms로 시작합니다. API는 남은 620ms 동안 인벤토리에 시간을 제공합니다. 호출은 0에서 취소됩니다. 서버는 그 후 생성된 작업을 중지합니다. Technical concept or control:요청 기한 (Request Deadline)。 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 요청 기한 (Request Deadline) 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.