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

Redis 를 사용해 메인 페이지 책 목록을 캐시한다 #75

Open
5minho opened this issue Aug 14, 2021 · 3 comments
Open

Redis 를 사용해 메인 페이지 책 목록을 캐시한다 #75

5minho opened this issue Aug 14, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@5minho
Copy link
Contributor

5minho commented Aug 14, 2021

메인 페이지의 책 목록은 많은 사람들이 공통적으로 READ 하는 데이터이기 때문에 캐시를 했을때 캐시 hit ratio 가 상당히 높을 것으로 예상

as-is
딱히 캐시하고 있지 않음, 무조건 DB 에 요청

to-be
레디스에 대해서 학습해보고, 레디스를 사용해 캐시를 적용해 DB 부하를 줄인다.

@5minho
Copy link
Contributor Author

5minho commented Aug 14, 2021

참고

  • 레디스가 장애포인트가 되지 말아야함, 레디스에 못 붙더라도 서비스가 올라와야 하고, 레디스 서버 장애가 나더라도 어플리케이션은 동작해야함
  • 레디스가 장애가 나서 캐시를 할 수 없을때를 로컬 메모리에 캐시하는 전략을 사용하면 좋을거 같음
  • 레디스 이중화도 경험해보자

@5minho 5minho added the enhancement New feature or request label Aug 14, 2021
@whoareyouwhoami
Copy link

@5minho 다들 괜찮으시면 이 이슈 제가 할께요

@5minho
Copy link
Contributor Author

5minho commented Sep 27, 2021

넵 저는 괜찮습니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants