09_Redis를_활용한_캐싱전략 - loveAlakazam/hh-08-concert GitHub Wiki

목적

Redis 의 캐시 적용이 왜 필요로 할까?

문제식별

  • 데이터 로우수가 많아져서 오래걸릴 경우

해결방안

콘서트 목록 조회

  • read-through
  • TTL: 25h

concert-read-through

ttl-25hours

콘서트 일정 목록 조회

  • read-through
  • TTL: 25h

concert-date-read-through

콘서트 좌석 목록 조회

  • read-through
  • TTL: 1h

concert-seat-read-through

좌석 임시예약

  • cache-evict로 변경

concert-seat-read-through

예약 취소

  • cache-evict 로 변경

concert-cancel-reserve-write-through

토큰 발급

  • write-through

token-waiting-write-through

토큰 검증 & 토큰정보 조회

token-read-through

토큰 활성화

token-active-write-through


성능 테스트 및 결과 분석

DB 조회

Redis 캐시 조회


한계점 및 고민

캐시와 데이터베이스간의 데이터 일관성 문제

레디스에 장애가 발생했을때 대비책


결론