Files
document-haness/docs/clean-architecture-backend-template/tech-log-studio/state-machines-and-ownership/concept/concept-grpc-advanced-resilience-c01.md
T
DongHyeonkaandClaude Fable 5.1 b25357c48a docs(clean-architecture-backend-template): fold analysis into final and re-select one topic
- analysis/·source-index·state.json 을 final/document.md 제2부·제3부로 접었다. SSOT 는 하나다
- 파일럿 — commit-ambiguity-as-a-result 를 새 기준으로 재선별. 후보 14 → 글감 5
  (PROMOTE 5 · MERGE_INTO 3 · KEEP_IN_SSOT 4 · 보류 2). 기록 5건을 다시 썼고 그림 1개를
  techviz 로 만들었다
- 재선별이 잡은 것: 제1부 §6.2·§11.1 이 자기 §13.2 와 어긋나 있었다(레인을 안 돌렸다 vs
  돌렸다) — 정정. 이미 답이 나와 있던 Question 을 HEAD 재실행 질문으로 다시 세웠다.
  Concept 이 인용한 코드가 SSOT 에 없어 뺐다
- candidateScope·sourceRepository 기록. 나머지 43개 주제는 재선별 대기(PENDING 905)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-07 12:39:20 +09:00

2.3 KiB

kind, slug, title, topic, project, status, sourceRevision, rootTreeNode, evidenceCapturedOn, assets, evidence, source, module
kind slug title topic project status sourceRevision rootTreeNode evidenceCapturedOn assets evidence source module
CONCEPT grpc-advanced-resilience-c01 헤지는 성공했을지도 모르는 호출에 대해 일어난다 state-machines-and-ownership clean-architecture-backend-template 게시 전 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916 concept:grpc-advanced-resilience-c01 2026-09-01
key file
grpc-advanced-resilience-c01 ../../../final/evidence/rendered/grpc-advanced-resilience-c01.svg
key file
grpc-advanced-resilience-c01-diagram ../../../final/assets/diagrams/grpc-advanced-resilience-c01.svg
../../../final/evidence/raw/grpc-advanced-resilience-c01.txt
원본 분석 절은 final/document.md#a20-grpc-advanced-resilience#L58 이다.
grpc-advanced-resilience

헤지는 성공했을지도 모르는 호출에 대해 일어난다

헤징 예산은 토큰 버킷이다. 헤지 하나가 round(1/ratio) 토큰을 쓰고, 완료된 호출 하나가 토큰 하나를 돌려준다.

본문

토큰 버킷이다. 헤지 하나가 round(1/ratio) 토큰을 쓰고, 완료된 호출 하나가 토큰 하나를 돌려준다. 상한이 조용한 구간 뒤의 폭주를 제한한다.

헤지가 허용되는 조건

:::evidence key="grpc-advanced-resilience-c01-diagram" alt="첫 시도와 예산 확인과 토큰 소비와 헤지 시도가 왼쪽에서 오른쪽으로 이어지는 구조" caption="헤지가 허용되는 조건" zoom="false" :::

비율 상한이 0.5 이고 그 근거가 적혀 있다.

"a hedging ratio above 0.5 means more than half of all calls are duplicated, which is a load decision rather than a latency one"

재시도 예산보다 급한 이유

"A retry happens after a failure; a hedge happens on a call that might have succeeded, so a fleet that hedges without a budget doubles its backend load in the steady state and doubles it again the moment latency rises."

이 기록이 다루는 파일 범위

:::evidence key="grpc-advanced-resilience-c01" alt="코드베이스에서 파일 목록을 만든 출력 16줄. 이 기록이 다루는 범위가 그 목록이다." caption="코드베이스 파일 목록 — 16줄 · exit 0" zoom="true" :::

소비가 비교 후 교체 루프다

이 가족에서 원자성을 제대로 다룬 몇 안 되는 곳이다.