--- 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 --- # 브로커가 받아들인 발행을 로거 실패가 실패로 만들지 못한다 두 발행 포트의 실패 정책이 정반대이고, 발행과 관측이 분리된 이유가 수정 이력으로 남아 있다. ## 본문 두 발행 포트의 실패 정책이 정반대다. | 포트 | 정책 | 근거 | |---|---|---| | `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).