Skip to content

fix: AI 요약 저장 동시성 제한 - #288

Merged
hyoj-dev merged 1 commit into
developfrom
fix/limit-summary-save-concurrency
Jul 21, 2026
Merged

fix: AI 요약 저장 동시성 제한#288
hyoj-dev merged 1 commit into
developfrom
fix/limit-summary-save-concurrency

Conversation

@hyoj-dev

Copy link
Copy Markdown
Collaborator

변경 사항

  • AI Summary 생성은 기존처럼 병렬로 유지합니다.
  • Summary DB 저장 구간만 공정한 Semaphore로 최대 4개까지 실행되도록 제한합니다.
  • 대기 요청은 저장 트랜잭션 진입 전에 기다리므로 DB 커넥션을 점유하지 않습니다.
  • 최대 동시성은 retrospective.summary-save-max-concurrency 설정으로 조정할 수 있고 기본값은 4입니다.

변경 이유

AI 회고 플로우 VU 10 테스트에서 Summary 저장 요청이 동시에 몰리면서 HikariCP 커넥션 풀이 고갈됐습니다. 저장 구간의 동시 실행 수를 제한해 일반 요청과 복구 처리에 사용할 커넥션 여유를 확보합니다.

영향

  • Complete API 및 요청·응답 DTO 변경 없음
  • 프론트엔드 변경 없음
  • DB 마이그레이션 없음
  • 5번째 이후 저장 요청은 실패하지 않고 순서대로 대기

검증

  • 동시 작업 10개에서 제한 구간 최대 실행 수 4개 검증
  • 대기 작업 10개 전체 완료 검증
  • 작업 실패 시 permit 반환 검증
  • 전체 테스트 통과
  • Spotless 검사 통과

@hyoj-dev
hyoj-dev marked this pull request as ready for review July 21, 2026 05:58
@hyoj-dev
hyoj-dev merged commit 702ce38 into develop Jul 21, 2026
3 checks passed
@hyoj-dev
hyoj-dev deleted the fix/limit-summary-save-concurrency branch July 21, 2026 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant