Skip to content

Conversation

@kimeunkyoungg
Copy link
Collaborator

@kimeunkyoungg kimeunkyoungg commented Nov 18, 2025

📝 작업 개요

  • 2차 피드백 반영 수정

🔗 관련 이슈

🔍 작업 내용

  • 토스페이먼츠 API 와 트랜잭션 분리 -> 퍼사드 패턴으로 구현
  • 결제, 랭킹 동시성 고려하여 락 도입
  • 결제는 비관적 락 사용
  • 랭킹은 Redisson 분산락 사용
  • 구독 양방향 제거
  • 랭킹 진행률 바 오류 수정
  • 랭킹 동점자 닉네임 순으로 정렬

✅ 체크리스트

  • 코드에 오류가 없음
  • 테스트 코드 작성/수행 완료
  • 팀 내 코드 스타일 가이드 준수
  • 이슈 연결 여부

Copy link
Collaborator

@larama-C larama-C left a comment

Choose a reason for hiding this comment

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

확인했습니다!

.bodyToMono(PaymentConfirmResponse::class.java)
.block()
?: throw ErrorException(ErrorCode.PAYMENT_APPROVE_FAILED)
fun createPayment(response: PaymentConfirmResponse, user: User): Payment {
Copy link
Member

Choose a reason for hiding this comment

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

트랜잭션이 빠져있습니다.

@kimeunkyoungg kimeunkyoungg merged commit 3aaf399 into main Nov 18, 2025
1 check failed
@kimeunkyoungg kimeunkyoungg deleted the feature/#47 branch November 18, 2025 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] 외부 API(결제) 트랜잭션 분리 / 락 도입

4 participants