[System Design] What is Cache miss attack

What is Cache miss attack

Cache miss attack은 가져올 데이터가 캐시와 데이터베이스 모두에 없는 시나리오에서 발생한다. 이런 요청은 캐시를 무산시키고 데이터베이스에 도달하게 된다. 공격자가 이러한 쿼리를 많이 시작하면 데이터베이스가 쉽게 과부하된다.

일반적으로 이 문제 해결을 위해 두 가지 접근 방식이 사용된다.

  1. 짧은 TTL을 가진 null값에 대한 캐시를 설정
  2. 블룸필터를 통해 데이터의 존재 가능 여부를 확인하여 먼저 확인
Author: Song Hayoung
Link: https://songhayoung.github.io/2023/03/08/System%20Design/etc/cache-miss-attack/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.