-
Notifications
You must be signed in to change notification settings - Fork 0
[Feat] 태그 생성 동시성 제어 (Redisson 분산 락) #158
Copy link
Copy link
Open
Labels
✨ feat새로운 기능 추가새로운 기능 추가
Description
💼 작업 설명
- 현재 Tag 생성시
findOrCreate패턴의 race condition으로 인한 중복 태그 생성 가능성이 존재합니다
- 스레드 A:
findTechStackTagByNormalizedName("springboot")→ empty- 스레드 B:
findTechStackTagByNormalizedName("springboot")→ empty (A가 커밋하기 전)- 스레드 A: 새 태그 생성 및 저장 완료
- 스레드 B: 동일한 태그 생성 시도 → DataIntegrityViolationException 또는 중복 데이터
- 동시성 문제를 해결하기 위해 Redisson 분산 락을 구현할 예정입니다.
✅ To-do
-
TagService.findOrCreateTechStackTag에 분산 락 적용 - 동시 요청 테스트 및 중복 생성 방지 검증
참고할만한 자료 (선택)
- Redisson 공식 문서
- 대상:
TagService.findOrCreateTechStackTag(String normalizedName)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
✨ feat새로운 기능 추가새로운 기능 추가
Type
Projects
Status
🛠 진행 중 (In Progress)