Skip to content

Conversation

@shihan00321
Copy link
Collaborator

@shihan00321 shihan00321 commented Oct 10, 2025

제목(필수): [TYPE]: 제목 예) [FEAT]: 회원가입 기능 추가

제목 규칙 자세히 보기
  • 형식: [TYPE]: 제목
  • 제한: 50자 이내, 첫 글자 대문자, 명령문
  • TYPE: FEAT FIX REFACTOR COMMENT STYLE TEST CHORE INIT

무엇을 / 왜

  • 무엇(What):
  1. 시나리오 조회 및 첨부 기능을 추가하였습니다.
  2. 비관적 락을 애플리케이션 레벨 ReentrantLock 기반 락으로 전환하였습니다.
  3. 투표 게시글 조회, 성공 시 투표 결과가 응답되도록 변경하였습니다.
  • 왜(Why):
  • DB 레벨 락 대신 애플리케이션 레벨 락으로 전환해 불필요한 DB 락 경합을 줄였습니다.

어떻게(요약) — 3줄 이내

  • 시나리오 게시글 요청 시 시나리오 ID 추가
  • JPA 비관적 락 대신 ReentrantLock을 적용하여 동시성 제어를 단순화했습니다.
  • 투표 게시글 조회 시 투표 여부 및 집계 결과를 함께 반환하도록 응답 스펙을 수정했습니다.

영향 범위

  • API 변경
  • DB 마이그레이션
  • Breaking Change
  • 보안/권한 영향
  • 문서/가이드 업데이트 필요

체크리스트

  • 타입 라벨 부착 (FEAT/FIX/REFACTOR/COMMENT/STYLE/TEST/CHORE/INIT)
  • 로컬/CI 테스트 통과
  • 영향도 점검 완료
  • 주석/문서 반영(필요 시)

ToDo (선택)

  • 할 일 1
  • 할 일 2

스크린샷/증빙(선택)

이슈 연결 (자동)

Closes #91

@shihan00321 shihan00321 self-assigned this Oct 10, 2025
@shihan00321 shihan00321 added the FEAT 새로운 기능 추가 label Oct 10, 2025
Copy link
Collaborator

@lcs9317 lcs9317 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

Copy link
Collaborator

@johnbosco0414 johnbosco0414 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

@shihan00321 shihan00321 merged commit 945efbb into main Oct 10, 2025
3 checks passed
@lcs9317 lcs9317 deleted the feat/posts-scenario branch October 10, 2025 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FEAT 새로운 기능 추가

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT]: 시나리오 게시글 추가 ReentrantLock 락 적용

4 participants