====== spring-data-redis ====== * [[https://spring.io/projects/spring-data-redis|Spring Data Redis]] * [[nosql:redis|Redis]]를 [[https://spring.io/projects/spring-data|Spring Data]] 의 기본 repository 를 통해 사용하게 해준다. 마치 [[java:jpa:springdatajpa|Spring Data JPA]] 처럼 사용할 수 있다. 가급적 사용하지 말 것. 문제점을 명확하게 인식해야 한다. ===== 문제점 ===== * redis 는 key-value 스토리지라서 index 개념이 없고 필드 조건에 따른 조회 기능이 없는데 spring-data-redis 를 사용하면 spring-data 의 기본 요건에 따라 인덱싱 관련 데이터를 추가로 만들면서 데이터량이 매우 증가하게 된다. * 이 사실을 모르고 개발하면 안된다. * [[https://hyperconnect.github.io/2022/12/12/fix-increasing-memory-usage.html|Spring Data Redis Repository 미숙하게 사용해 발생한 장애 극복기 | Hyperconnect Tech Blog]]