Skip to content

[Feat] 태그 생성 동시성 제어 (Redisson 분산 락) #158

@supsup-hae

Description

@supsup-hae

💼 작업 설명

  • 현재 Tag 생성시 findOrCreate 패턴의 race condition으로 인한 중복 태그 생성 가능성이 존재합니다
  1. 스레드 A: findTechStackTagByNormalizedName("springboot") → empty
  2. 스레드 B: findTechStackTagByNormalizedName("springboot") → empty (A가 커밋하기 전)
  3. 스레드 A: 새 태그 생성 및 저장 완료
  4. 스레드 B: 동일한 태그 생성 시도 → DataIntegrityViolationException 또는 중복 데이터
  • 동시성 문제를 해결하기 위해 Redisson 분산 락을 구현할 예정입니다.

✅ To-do

  • TagService.findOrCreateTechStackTag에 분산 락 적용
  • 동시 요청 테스트 및 중복 생성 방지 검증

참고할만한 자료 (선택)

Metadata

Metadata

Assignees

Labels

✨ feat새로운 기능 추가

Type

No type

Projects

Status

🛠 진행 중 (In Progress)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions