-
Notifications
You must be signed in to change notification settings - Fork 4
[KP-110] 인기 공지 조회수 동시성 이슈 해결 #195
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
Comments
Jira Issue Created: KP-110 |
Redis에서 조회수를 관리한다는게 모든 공지사항에 대한 조회수를 Redis에 매핑해두고 그 조회수들을 업데이트 한다는건가요? |
@buzz0331 후자로 생각하고 있습니다! |
음.. 후자로 했을 경우에 궁금한 점이 있습니다.
|
사실 저도 다른 분이 Redisson으로 분산락을 걸어서 조회수의 동시성과 정합성을 맞추는 것을 본 적이 있습니다. |
|
@kmw10693 |
Uh oh!
There was an error while loading. Please reload this page.
🔨 Describe
조회수 기반 인기 공지를 mysql에서 직접 조회수를 업데이트하는 것 보다
redis에서 조회수를 관리하는 게 I/O 성능에서 낫다고 생각했고,
redis 조회수 갱신시
동시성 이슈를 해결하려 합니다.
✅ Tasks
[동시성 이슈로 인해 발생한 레디스 캐시 정합성 이슈] 참고
-> 해당 블로그의 watch를 이용하려 했는데, 기본적으로 락을 구현하는 방식이 아니라 동시성 문제를 해결하기 어렵다고 생각해
[Redis Transaction을 이용한 분산락(Distributed Lock)으로 동시성 해결하기]
-> 비관적락인 Redisson을 적용해보려고 합니다
🙋🏻 More
화이팅
The text was updated successfully, but these errors were encountered: