[Chapter 10] Redis를 이용한 분산 lock 과 SERIALIZABLE 격리 수준 #166
Unanswered
JoisFe
asked this question in
Chapter 10. Redis and Spring Cache
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
책 에피소드를 보면
RDB 트랜잭션 격리수준 (ISOLATION)을 SERIALIZABLE로 두면 동시성 문제는 해결이 되지만 DB 부하가 생길 수 있다
라는 문구가 있습니다.
따라서 REDIS 분산 락을 구현하여 동시성을 해결하는 것을 제안하는데
특정 동시성 문제가 일어날 수 있는 부분에
@Transactional(isolation = Isolation.SERIALIZABLE)
을 통해 그해당 부분만 격리수준을 SERIALIZABLE 로 제안해도 성능상 큰 차이가 나는지 궁금합니다.Beta Was this translation helpful? Give feedback.
All reactions