This repository was archived by the owner on Mar 15, 2025. It is now read-only.
랭킹 캐싱 처리 #746
Unanswered
kimminkyeu
asked this question in
이슈 / 버그
랭킹 캐싱 처리
#746
Replies: 2 comments
-
사용 이유
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
랭킹 모듈 내부
에 캐싱이 필요 하다.캐싱 필요
랭킹을 페이지 조회 할 때마다 획득해 올 텐데.
그럼 그 획득은 같은 데이터 이거나 큰 변화가 없는 데이터이거나 사용자에게 반드시 최신을 보여줄 필요가 없는 데이터니까.
이때 캐싱이 필요. 프론트 입장에서도. 리프레시 할때마다 랭킹 연산이 들어갈 필요가 전혀 없다.
구현 방식
상원님이 로컬 캐시 라이브러리 (
카페인
) 써서 진행 중레디스르 쓰지 않는 이유는 레디스까지 쓸 만큼 분산환경도 아니고, 간단히 처리할 수 있으니까.
또 CPU 점유율이 높아져 EC2에 올릴 경우 비용이 증가할 것이라 판단
직접 로컬 캐시를 구현하지 않는 이유는, 일단 빠르게 적용할 수 있어서.
Beta Was this translation helpful? Give feedback.
All reactions