--- kind: CASE slug: messaging-outbox-jdbc-postgresql-f08 title: maxBatches 가 하드코딩이고 현재는 의미가 없다 topic: runtime-contract-correctness project: clean-architecture-backend-template status: 게시 전 sourceRevision: 21234e38cdb9a926cbc92bb97a2aee2e4a7d2916 rootTreeNode: case:messaging-outbox-jdbc-postgresql-f08 evidenceCapturedOn: 2026-09-01 assets: - key: messaging-outbox-jdbc-postgresql-f08 file: ../../../final/evidence/rendered/messaging-outbox-jdbc-postgresql-f08.svg evidence: - ../../../final/evidence/raw/messaging-outbox-jdbc-postgresql-f08.txt source: - 원본 분석 절은 final/document.md#a19-messaging-outbox-jdbc-postgresql#L935 이다. module: messaging-outbox-jdbc-postgresql priority: P3 --- # maxBatches 가 하드코딩이고 현재는 의미가 없다 starter 가 20 을 박아 넣는다(:141, :170). P1 을 고치기 전에는 이 값이 아무 일도 하지 않고, 고친 뒤에는 배치 크기와 함께 조정 대상이 된다. ## 문제 starter 가 20 을 박아 넣는다(:141, :170). P1 을 고치기 전에는 이 값이 아무 일도 하지 않고, 고친 뒤에는 배치 크기와 함께 조정 대상이 된다. ## 결론 OutboxProperties/InboxRetentionPolicy 로 옮기는 것이 맞다. ## 검증 환경 OpenJDK : 21.0.12 java -version 으로 확인 Gradle : 9.0.0 src/gradle/wrapper/gradle-wrapper.properties 의 distributionUrl 로 확인 확인 방식 : OutboxProperties 참조 28건 검색과 starter 가 넘기는 리터럴 값 확인 소스 수정 : x ## 재현 조건 원문은 final/document.md#a19-messaging-outbox-jdbc-postgresql#L935 에 있다. ## 본문 starter 가 `20` 을 박아 넣는다(`:141`, `:170`). ## OutboxProperties 참조 위치 :::evidence key="messaging-outbox-jdbc-postgresql-f08" alt="코드베이스에서 OutboxProperties 를 검색한 출력 28줄. 이 기록이 세는 참조가 그 출력에 그대로 보인다." caption="OutboxProperties 코드베이스 검색 — 28줄 · exit 0" zoom="true" ::: ## 지금은 아무 일도 하지 않는다 P1 을 고치기 전에는 이 값이 아무 일도 하지 않고, 고친 뒤에는 배치 크기와 함께 조정 대상이 된다. `OutboxProperties`/`InboxRetentionPolicy` 로 옮기는 것이 맞다. ## 확인하지 못한 것 이 값을 바꿔 배치 동작이 달라지는지 실행으로 확인하지 않았다. 무제한 DELETE 가 고쳐지기 전에는 값이 소비되지 않는다는 것으로 판정했다.