Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] 비관적 락을 이용한 동시성 제어 #100

Open
yeGenieee opened this issue Oct 30, 2023 · 0 comments
Open

[Feature] 비관적 락을 이용한 동시성 제어 #100

yeGenieee opened this issue Oct 30, 2023 · 0 comments
Assignees
Labels

Comments

@yeGenieee
Copy link
Collaborator

목표

  • 예매 시, 비관적 락을 이용하여 동시 예매에 대한 동시성 제어를 합니다.

방법

  • Reservation 조회 시 JPA의 @Lock 을 이용하여 동시성 제어를 진행합니다
  • 베타락을 걸어서 다른 트랜잭션의 읽기 및 쓰기가 모두 불가능하도록 합니다

대안

주의사항

  • 락을 걸어야 할 대상을 명확히 합니다

etc

  • 트랜잭션 격리 수준, 락의 종류, 비관적 락이 아닌 낙관적 락을 이용하는 방법은 무엇이 있는지 알아봅니다
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant