feat: redis, fileserver, httpclient 런타임 시점 구현 추가

This commit is contained in:
donghyeon-ka
2026-07-28 14:26:54 +09:00
parent 7363b2aa1e
commit b3add0162d
257 changed files with 30430 additions and 1357 deletions
+4 -3
View File
@@ -161,9 +161,10 @@ curl -X POST localhost:8080/work-logs -H 'Content-Type: application/json' -d '{
application) → ③ 직접 만든 JSON 페이로드로 직렬화 → ④ 같은 트랜잭션에서 outbox 에 append.
- `eventId``OutboxEventIdFactory`(UUIDv7) 로 만들고, `idempotencyKey = eventId` 로 둡니다
(이벤트 단위 중복 제거).
- `correlationId`MDC `correlation_id` 슬롯에서 읽습니다(인바운드 HTTP 필터가 채워줌).
스케줄러/배치/테스트처럼 그 필터를 거치지 않는 경로에서는 값이 없으므로 `eventId` 로 자기
자신을 가리키게(self-correlation) 폴백합니다.
- `correlationId`application-core`CorrelationIdPort`로 읽습니다. inbound web adapter가
sanitized MDC 값을 포트 뒤에서 제공하므로 sample application 코드는 SLF4J/MDC를 알지 않습니다.
요청 밖에서 실행되거나 값이 blank면 `eventId`를 그대로 `correlationId`로 사용해 이벤트가
최소한 자신을 가리키게(self-correlation) 폴백합니다.
- 쓰기 작업이라 `@RequiresPermission("worklog:write")` 로 권한을 요구합니다(이 권한은 `user`/`admin`
역할 묶음에 부여).