- 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>
52 lines
2.6 KiB
Markdown
52 lines
2.6 KiB
Markdown
---
|
|
kind: CONCEPT
|
|
slug: adapter-outbound-messaging-c04
|
|
title: 브로커가 받아들인 발행을 로거 실패가 실패로 만들지 못한다
|
|
topic: delivery-and-settlement-models
|
|
project: clean-architecture-backend-template
|
|
status: 게시 전
|
|
sourceRevision: 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916
|
|
rootTreeNode: concept:adapter-outbound-messaging-c04
|
|
evidenceCapturedOn: 2026-09-01
|
|
assets:
|
|
- key: adapter-outbound-messaging-c04
|
|
file: ../../../final/evidence/rendered/adapter-outbound-messaging-c04.svg
|
|
evidence:
|
|
- ../../../final/evidence/raw/adapter-outbound-messaging-c04.txt
|
|
source:
|
|
- 원본 분석 절은 final/document.md#a12#L284 이다.
|
|
module: adapter-outbound-messaging
|
|
---
|
|
|
|
# 브로커가 받아들인 발행을 로거 실패가 실패로 만들지 못한다
|
|
|
|
두 발행 포트의 실패 정책이 정반대이고, 발행과 관측이 분리된 이유가 수정 이력으로 남아 있다.
|
|
|
|
## 본문
|
|
|
|
<!-- body:start -->
|
|
|
|
두 발행 포트의 실패 정책이 정반대다.
|
|
|
|
| 포트 | 정책 | 근거 |
|
|
|---|---|---|
|
|
| `MessagePublisher` → `OutboundMessagePublisher` | **fail-open** | "a broker outage must never turn a core use case into a 5xx (durable delivery is delegated to the outbox/retry path)" |
|
|
| `OutboxMessagePublishPort` → `OutboxMessagePublishAdapter` | **fail-closed** | 실패가 그대로 전파되어 relay가 FAILED/DEAD 전이를 몰 수 있게 한다 |
|
|
|
|
## OutboundMessagePublisher 참조 위치
|
|
|
|
:::evidence key="adapter-outbound-messaging-c04" alt="코드베이스에서 OutboundMessagePublisher 를 검색한 출력 13줄. 이 기록이 세는 참조가 그 출력에 그대로 보인다." caption="OutboundMessagePublisher 코드베이스 검색 — 13줄 · exit 0" zoom="true"
|
|
:::
|
|
|
|
## 같은 try 블록을 쓰던 시절
|
|
|
|
`OutboundMessagePublisher.publish`에 이 저장소에서 반복해 본 종류의 수정 이력이 있다.
|
|
|
|
> "The send and the observation are separate steps because they used to share a try block: **a logger that threw after a successful send was caught by the same catch and reported as a publish failure.** The broker had accepted the message; the only thing that failed was the record of it, and the two must not be confusable."
|
|
|
|
## 진단은 권위를 갖지 않는다
|
|
|
|
`observeQuietly`가 진단 예외를 흡수하며 "Diagnostics are non-authoritative. **An appender that is out of disk must not change what the caller believes about the broker.**" 비활성 sentinel 둘은 조용한 no-op이 아니라 `AdapterDisabledException`을 던지고, 서로 다른 클래스로 분리된 이유가 bean 조회 모호성이다(§2).
|
|
|
|
<!-- body:end -->
|